I get an error when calling a com object.
Somehow when i have optimize code disabled there seems to be a difference between debugging and just running the debug build.
When debugger is attached from startup it crashes with the AccessViolationException.
When debugger is attached after starting the app no error
Just starting the app No Error.
How can debugging from Visual studio 2010 make such a difference?