best way to catch exception in visual studio c++ debug mode only happen when running from IDE -


I have an application that is multi-threading with a heap and includes fixed global members in the item (I know. ..not good) I am thrown away from different places every time. What is the best strategy to catch it?

Getting:

  unexpected exception on 0x0135f2a7 in myapp.exe: 0xC0000005: Location violation 0x00000004   

UPDATE
I think when I compile in release mode and run it outside the IDE, then its work is fine, how can it be?

I'm assuming that what you're trying to do is solve a common problem rather than a normal run-time exception Handling system?

There is an option named "Exceptions ..." under the "Debug" menu of VS2010 and 2012. You can request that a break in the VS debugger application when an exception is thrown; This should give you some insight which is actually going wrong and where is it.

Comments

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -