473,768 Members | 4,481 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.ex e': Unloaded 'C:\WINDOWS\sys tem32\version.d ll'
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(mainr et)" 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 1580

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

Similar topics

3
1867
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# project. It shouldn't make a difference but I did have to do http://support.microsoft.com/default.aspx?scid=kb;;814472&product=vcNET to get my c++ project to compile properly. Anyways, as test i did 'select * from items' using both an ole db...
1
1321
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 application properly but when COM is called MS Visual Studio reports unhandled exception and closes. What should I do to be able to debug COM called by application written for Win32?
8
2475
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!! This is the error: biopsy.searchsubject.btnSubject_Click(Object Sender, EventArgs e) in C:\INetPub\WWWRoot\biopsy\searchsubject.aspx.vb:198 System.Web.UI.WebControls.Button.OnClick(EventArgs e)
7
7887
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 debug I get "The operation could not be completed. The process cannot access the file because it is being used by another process. " If you click ok to that dialog and try to debug again I get:
0
2164
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 use System.Diagnostics.Process class in vb.net to start a "Mailto:" + email address. This works fine, however I wanted to expand on this some more when the user had sent the email I wanted to do something afterwards. so looked around and found...
1
3124
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 use System.Diagnostics.Process class in vb.net to start a "Mailto:" + email address. This works fine, however I wanted to expand on this some more when the user had sent the email I wanted to do something afterwards. so looked around and found...
5
5714
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 etc. Thanks Ole
1
5117
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 fine. But how to do in such following scenario: if I need to give 2 option for user,1. Quit 2. Restart. In Quit option, I use Environment.Exit(0) to confirm the process will be stopped. In Restart option, I can't use Environment.Exit(0) , because...
2
1425
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 by some java people. they claim this is the way it is done in java. - project worked fine in .net 1.1 - on upgrade to .net 2.0, the app does not terminate. i have to debug it using windbg, as the deadlocks get quite bad. usually the dealocks...
0
9575
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
10171
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
10015
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9842
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8840
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
7384
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
5280
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...
2
3534
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2808
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.