This application has requested the Runtime to terminate it in an unusual way

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<font style="font-size:9pt" face=Verdana>Hello,

We have an application developed in VS 2008. (Though, the exact same problem occurred in VS 2003)

After our application runs for a while, 6-24 hours or so, we get the error Dialog:

"Microsoft Visual C++ Runtime Library"

"This application has requested the Runtime to terminate it in an unusual way."
(etc)

If I try to suppress the error dialog, by using:
 
</font><font face=Verdana size=2>_set_abort_behavior(0, _WRITE_ABORT_MSG);

The dialog is sometimes, but not always, suppressed.

However, this is not helpful anyway, because this merely causes our application to exit quietly, which is unacceptable.  I need to know what is causing this.  I would like whatever it is in the MS runtime library to break in the debugger, so I can understand the problem.</font>
<font face=Verdana size=2>It would be nice if nothing in the Microsoft Runtime Libraries called abort(), or at least if they did, there was some way to control it.</font>

<p style="margin:0in 0in 0pt
Any ideas?

Thanks,
- Randy 

View the full article
 
Back
Top