Access Violation Exception only appearing when running C# app without debugger attached

Posted by Jon on Stack Overflow See other posts from Stack Overflow or by Jon
Published on 2010-05-27T20:27:10Z Indexed on 2010/05/27 20:31 UTC
Read the original article Hit count: 313

I have an application that works fine in Visual Studios 2008, and I am trying to get it into VS 2010 in order to use .NET 4, and I have a really weird problem. When I run the code from either Release mode or Debug mode with the debugger attached (F5), I have no problems running the program. However, when I run the program from either Release or Debug without the debugger attached (Shift+F5), I get an Access Violation Exception when I attempt to run some code in a dll from GDCM. I've created the dlls by using CMake and Swig and following the instructions here adjusting the instructions where necessary to build for VS 2010 and .NET 4.

Does any one have any ideas why this is happening and how I can fix it?

© Stack Overflow or respective owner

Related posts about c#

Related posts about visual-studio-2010