Top "Access-violation" questions

An access violation (also known as segmentation fault) is generally an attempt to access memory that the CPU cannot physically address.

"WindowsError: exception: access violation..." - ctypes question

Here is the prototype for a C function that resides in a DLL: extern "C" void__stdcall__declspec(dllexport) ReturnPulse(…

python ctypes access-violation windowserror
Access Violation: Attempted to read or write protected memory

I have a c# (.net 4.0) winforms application that runs pretty much every week day, 8 hours a day, on an XP …

c# winforms debugging exception-handling access-violation
Visual C++ Unmanaged Code: Use /EHa or /EHsc for C++ exceptions?

If I'm creating a new project in unmanaged C++, Visual Studio 2008 or greater, which exception handling model do I want …

c++ visual-studio-2008 exception access-violation seh
Why AccessViolationException cannot be caught by .NET4.0

It is really interesting that the following C# code will crash on .NET4.0 but work fine on .NET2.0. C# code …

c# c++ access-violation
Why can't I return a char* string from C++ to C# in a Release build?

I'm attempting to call the following trivial C function from C#: SIMPLEDLL_API const char* ReturnString() { return "Returning a static …

.net pinvoke marshalling access-violation
How to find out who's causing an access violation error?

I'm getting reports that my app is causing a GPF on some Vista machines. The error message is something like …

delphi vb6 windows-vista crash access-violation
Why does this code to modify a string not work?

With c-style strings, how do you assign a char to a memory address that a character pointer points to? For …

c pointers char segmentation-fault access-violation
c# System.AccessViolationException: Attempted to read or write protected memory.?

Not always but now and then i keep getting the below error, it doesn't effect me much "I think" but …

c# entity-framework dbcontext access-violation
How can I handle an access violation in Visual Studio C++?

Usually an access violation terminates the program and I cannot catch a Win32 exception using try and catch. Is there …

visual-c++ exception-handling access-violation structured-exception
Marshal.Copy method throws AccessViolationException in C#.NET

I am working on a C# application that would display live images from a camera. The problem I am facing …

c# bitmap access-violation