473,385 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 27312
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Robert | last post by:
On Windows my python 2.2 application (using win32ui GUI, ...) some times simply crashes when I work with the GUI. Tooltips are involved; the app crashes on mouse moves). The GUI-Window disapears...
2
by: Terence Shek | last post by:
Is there a way to set the application binding policy so that it always binds to the latest version of an assembly? I'm hoping there is a way to avoid updating the application's binding...
4
by: tjfdownsouth | last post by:
Is there a straight forward way to tell .net to log any unhandled errors in the application log. I am catching and logging in certain locations but its the surprise errors that I need to log the...
12
by: Rakesh | last post by:
Hi, I am catching unhandled exception by attached an event handler on the Application.ThreadException event. This will ensure that I could handle all uncaught exceptions on the main thread. ...
1
by: MKJ | last post by:
Hello, I realize that I am posting to a non-support thread, but I a exasperated. I figured that no one would know how to solve my proble better than those who understand code. Curious to see...
3
by: Gustavo L. Fabro | last post by:
Greetings! I'm testing VS 2005 Beta 2, and I've compiled a program that runs just fine on my computer (where VS is installed). I've tried to run this same program on another computer (after...
0
by: Umair Ahmed | last post by:
Hi, I m developing a web application on Win2k platform and deploying the application on Win2k platform. I didnt get any error on the development machine but when i deployed to any machine on...
4
by: msnnews.msn.com | last post by:
hi there, i've got a form that populates a datagrid, and a button that calls a function to export to an excel file. All is well with the export, no errors are returned, but the Excel instance...
0
by: Mark A. Ziesemer | last post by:
I've seen a few other postings that looked similar to this, but most appear to have died without any working solutions, and lacked any helpful level of information to see if they might be related. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.