Disable Microsoft Visual C ++ Runtime Error

If my application crashes, the Microsoft Visual C ++ Runtime Library "Runtime Error!" takes place.

Message text:
This application asked Runtime to terminate in an unusual way.
For more information, contact support.

I know that I need to solve all these problems, but I think that this error did not appear in the past. Is it possible in Visual Studio 2005 to enable / disable such an error (processing) ?. Instead, I expect the application to simply crash / crash and offer a Microsoft Windows error report.

+6
visual-c ++ visual-studio runtime-error
source share
2 answers

This error message appears if the exception is not handled and unexpected() is called, or if a destructor exception is thrown during unwinding of packets and terminate() called. Both of them lead to a call to abort() and its implementation of abort() , which displays a message box. This behavior is constructive in VS2k3, VS2k5, and VS2k8. This is really annoying, especially in applications designed to run without human intervention (for example, daily builds).

You can get around this behavior - use catch(...) to catch all exceptions at the top level and set your own terminate() handler using set_terminate() .

+9
source share

using:

 _set_abort_behavior( 0, _WRITE_ABORT_MSG); 
0
source share

All Articles