Discussion:
VS 2008 console application no default exception message
(too old to reply)
Ken Varn
2009-10-21 20:01:10 UTC
Permalink
I have just started using VS 2008 after being on VS 2003. I am running a
native console C++ application. Whenever the application experiences an
un-caught exception, it just terminates. If I remember correctly, VS 2003
would display some sort of message or something (Access violation, divide by
0, etc..). How do I get VS 2008 C++ console app to handle uncaught
exceptions this way? I don't want it to just silently terminate.

In addition, I have tried using SEH, but still have some things that do not
get caught and just terminate the app. This makes it very difficult to
debug.
Nathan Mates
2009-10-21 20:28:28 UTC
Permalink
Post by Ken Varn
I have just started using VS 2008 after being on VS 2003. I am running a
native console C++ application. Whenever the application experiences an
un-caught exception, it just terminates. If I remember correctly, VS 2003
would display some sort of message or something (Access violation, divide by
0, etc..). How do I get VS 2008 C++ console app to handle uncaught
exceptions this way? I don't want it to just silently terminate.
Nothing specific about console vs Windows app. Call
http://msdn.microsoft.com/en-us/library/ms680634%28VS.85%29.aspx and
you can do whatever you want. Search around the internet, you can
probably find some useful code to open dialog boxes, dump callstacks,
or more.

Nathan Mates
--
<*> Nathan Mates - personal webpage http://www.visi.com/~nathan/
# Programmer at Pandemic Studios -- http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A. Heinlein
Loading...