Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / January 2007

Tip: Looking for answers? Try searching our database.

Application has requested runtime to terminate it in an unusual way

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mikes1962 - 18 Jan 2007 20:16 GMT
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
Oleg Starodumov - 19 Jan 2007 08:08 GMT
> 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
[quoted text clipped - 7 lines]
> 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/]
mikes1962 - 23 Jan 2007 19:16 GMT
I have attached the debugger but how do I know which thread is showing
the message?

Thanks

> > 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
[quoted text clipped - 15 lines]
> Oleg
> [VC++ MVP http://www.debuginfo.com/]
mikes1962 - 23 Jan 2007 21:44 GMT
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
> I have attached the debugger but how do I know which thread is showing
> the message?
[quoted text clipped - 20 lines]
> > Oleg
> > [VC++ MVP http://www.debuginfo.com/]
Oleg Starodumov - 24 Jan 2007 08:55 GMT
> 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
ajryan - 24 Jan 2007 12:30 GMT
When running outside the IDE are you also running on a different
machine?  Perhaps some library is missing.

> 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
[quoted text clipped - 11 lines]
>
> Mike Sankovet

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.