469,266 Members | 2,063 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,266 developers. It's quick & easy.

Application has requested runtime to terminate it in an unusual way

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

Jan 18 '07 #1
5 27061
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.

--
Oleg
[VC++ MVP http://www.debuginfo.com/]

Jan 19 '07 #2
I have attached the debugger but how do I know which thread is showing
the message?

Thanks

Oleg Starodumov wrote:
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.

--
Oleg
[VC++ MVP http://www.debuginfo.com/]
Jan 23 '07 #3
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

Mike
mikes1962 wrote:
I have attached the debugger but how do I know which thread is showing
the message?

Thanks

Oleg Starodumov wrote:
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.

--
Oleg
[VC++ MVP http://www.debuginfo.com/]
Jan 23 '07 #4
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


Jan 24 '07 #5
When running outside the IDE are you also running on a different
machine? Perhaps some library is missing.

On Jan 18, 3:16 pm, "mikes1962" <sanko...@yahoo.comwrote:
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
Jan 24 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by tjfdownsouth | last post: by
12 posts views Thread by Rakesh | last post: by
reply views Thread by Umair Ahmed | last post: by
4 posts views Thread by msnnews.msn.com | last post: by
reply views Thread by Mark A. Ziesemer | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.