473,699 Members | 3,239 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 27337
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
13222
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 and only the following message is yielded (from python-core?) " This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. "
2
8800
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 configuration every time there is an update to a shared assembly.
4
1515
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 information from. I know how to log using a try-catch block but i need something for any unforseen error since my users do not report the description and location correctly. Thanks for any help.
12
2693
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. But, suppose I create a new thread within my app and an unhandled exception is generated in that thread, will that exception be caught here?
1
366
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 if anyone can help. I have been trying to install a program for my business for about month
3
11812
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 having installed MS .NET Framework 2.0 Beta 2 on it, from http://www.microsoft.com/downloads/details.aspx?FamilyId=7ABD8C8F-287E-4C7E-9A4A-A4ECFF40FC8E&displaylang=en), but got the following message:
0
1402
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 wch only .NET framework 1.o is installed it gives the following error Server Application Unavailable The web application you are attempting to access on this
4
2516
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 doesnt want to terminate properly even when i set excelApp.Quit, and excelApp = nothing. has anyone else experienced a problem like this??? code below:
0
5457
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. I'm thinking this is an ASP.Net 2.0 bug, but would like to try to elaborate it further. I'm hoping to see if someone else may be having the same issue. Error: (Popup on the desktop) Title: "w3wp.exe - Application Error"
0
8706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8633
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9199
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7787
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6552
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5891
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4392
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3076
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2366
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.