Application has requested runtime to terminate it in an unusual way

  • Thread starter Thread starter mikes1962
  • Start date Start date
M

mikes1962

I am developing a Dialog based application using visual c++ .net 2003
running on XP, and when I run I periodically get the following error
message.

"The application has requested runtime to terminate it in an unusual
way"

The error doesn't always occur. and when I run within the IDE the error
never occurs.
Has anyone seen anything like this?
Does anyone have any suggestions on how to debug it?

Thanks

Mike Sankovet
 
I am developing a Dialog based application using visual c++ .net 2003
running on XP, and when I run I periodically get the following error
message.

"The application has requested runtime to terminate it in an unusual
way"

The error doesn't always occur. and when I run within the IDE the error
never occurs.
Has anyone seen anything like this?
Does anyone have any suggestions on how to debug it?

The first step is to attach debugger to the process and check the call stack
of the thread that is showing the message. In most cases, the reason
of the problem becomes clear after that.
 
I have attached the debugger but how do I know which thread is showing
the message?

Thanks
 
Oleg

Thanks for the reply. I used spy++ to find out what thread is actually
generating the dialog box with the error. I turns out is a thread named
"free" with a location of "free". It is apparently a thread created
while my application is running but I don't create it explicitly. How
would I proceed from here?

Thanks
 
Thanks for the reply. I used spy++ to find out what thread is actually
generating the dialog box with the error. I turns out is a thread named
"free" with a location of "free". It is apparently a thread created
while my application is running but I don't create it explicitly. How
would I proceed from here?

Enable symbol server support in VS.NET debugger:

1. Consider updating symsrv.dll with the latest version,
as explained by the link below.
http://www.debuginfo.com/tips/symsrvexlist.html

2. Set _NT_SYMBOL_PATH environment variable to the following value:
srv*c:\symbols*http://msdl.microsoft.com/download/symbols

(c:\symbols can be any directory on your machine, it will be used as a cache
for symbols downloaded from Microsoft)

With symbol server configured, the next time you start debugging,
it will download symbols for system dlls, and you will be able to see
better callstack. You can post it here if necessary.

Oleg
 
When running outside the IDE are you also running on a different
machine? Perhaps some library is missing.
 
Back
Top