Re: Strange app closing exception
"Murrgon" wrote:
I'm having some difficulties with an exception that is
thrown as my program is exiting from an error condition.
When the error condition happens, I throw my own exception
which is handled properly by the try {} catch {} I have in
WinMain(). The problem is, when I step out of the catch{}
context, I get an error that looks like this:
"The application has requested the Runtime to terminate it
in an unusual way. Please contact the application's
support team for more information."
The only thing after my catch{} in WinMain() is the
return()
call. If I press Retry on the error message dialog, it
breaks in crt0msg.c in the _NMSG_WRITE() function.
I'm not quite sure how to tackle this one. It seems to be
disappearing into never-never land after my code runs.
Any
suggestions?
It seems that your program calls `std::terminate' at some
point (most likely from `std::unexpected' handler). Ensure
that you catch everything. If you can make small concise
example and post it here, then it will be easier to help.
Alex