473,398 Members | 2,120 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,398 software developers and data experts.

ExitInstance never called: how to debug application exit?

Hi

We're porting an MFC application from VS 5.0 to VS 7.0 (using pure C++
only).
There is a problem when the application exits:
...
'ratv_client.exe': Unloaded 'C:\WINDOWS\system32\version.dll'
The thread 'Win32 Thread' (0xd4c) has exited with code 3 (0x3).
Detected memory leaks!
...

There are memory leaks because ExitInstance of our application
(derived from CWinApp) is never called! We're trying to understand
why... In order to do this, we want to debug the part where the
application exits.
We've put breakpoints on the return of AfxWinMain, in AfxWinTerm, on
"return ExitInstance()" of thrdcore.cpp, even on "exit(mainret)" of
crtexe.c, but none of those breakpoints are reached.
The 'Win32 Thread' (whatever that is) seems to suddently stop before
anything we can reach.

So how can we trace what happens when we quit the application?

Any help appreciated, thanks in advance!
Chris
Nov 16 '05 #1
0 1565

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Hasani | last post by:
I'm creating a .net db provider and I came across a weird problem w/ my data reader. The .net provider was created in managed c++ becuase the db api is also c++. I'm calling the code from a c#...
1
by: Konrad Kataneksza | last post by:
Hi, I have written COM in C#. This COM is called by an application written in Delphi 5. I want to be able to debug my COM when it is called by mentioned application. MS Visual Studio runs...
8
by: ST | last post by:
Hello everyone, Can anyone help me with this error above when I debug my web app project in vstudio.net?? I can't figure it out! It was working fine for months, and now all of a sudden it's not!!...
7
by: JR | last post by:
VS2005 Team Developer edition (final) developing a Windows Application When in debug mode if you make any changes to the application settings or project properties, the next time I attempt to...
0
by: Pete | last post by:
Hi All, I'm new to this so please correct me if I'm wrong. I have written a small program which holds details for task information. the program holds an email address, i created a button which...
1
by: Pete | last post by:
Hi All, I'm new to this so please correct me if I'm wrong. I have written a small program which holds details for task information. the program holds an email address, i created a button which...
5
by: Ole | last post by:
The Application.Exit (called from a worker thread) method doesn't cause the OnClosing event handler to be run - is that a default behaviour??? If so - what should I do to properly close all threads...
1
by: =?Utf-8?B?VGFvZ2U=?= | last post by:
Hi All, When I use applcation.exit() in winForm application, the form closed, but the process is still going!! ( The debug process is still running if debug in VS IDE). Environment.Exit(0) works...
2
by: anon | last post by:
- realtime application has multiple forms. each form is created on a new (gui) thread. this was supposedly for efficiency reasons, i am told. this was done before i took this project. it was done...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.