System.AccessViolationException: Attempted to read or write protected memory

System.AccessViolationException: Attempted to read or write protected memory

After 

• migrating to another platform, or

• build your code in DEBUG mode, or 

• while debugging your code line by line

system may throw the following exception:

Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory.
This is often an indication that other memory is corrupt

This issue shouldn't happen in managed code. You can try setting Visual Studio Debugger to bypass this exception through:

Tools menu -> Options -> Debugging -> General
Uncheck "Suppress JIT optimization on module load"


added 10 years 2 months ago

- The Configuration Section Cannot Contain a CDATA or Text Element
- What is horsepower? Kw hp conversion
- A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.ServiceModel.dll
- A first chance exception of type 'System.ServiceModel. CommunicationObjectAbortedException' occurred in System.ServiceModel.dll
- System.AccessViolationException: Attempted to read or write protected memory
- How to download attachments from outlook
- How to add Startup items to Windows 8
- How to forward IP-Port on Windows Machine
- There's more than one way to do it (TMTOWTDI)
- Don't repeat yourself (DRY)