Exit code 0x3 
Author Message
 Exit code 0x3

I'm having problem resolving a memory leak, the
destructors
for the following classes are never called when I close my
application:
CMainFrame
CDocManager
CMultiDocTemplate
CCmdTarget
CWinApp

Here is the output:

The thread 'Win32 Thread' (0x6a0) has exited with code 3
(0x3).
The thread 'Win32 Thread' (0xacc) has exited with code 3
(0x3).
The thread 'Win32 Thread' (0x604) has exited with code 3
(0x3).
The thread 'Win32 Thread' (0x874) has exited with code 3
(0x3).
Detected memory leaks!
Dumping objects ->
{3886} normal block at 0x002FAD98, 22 bytes long.
 Data: <  .|            > 10 FF 2E 7C 05 00 00 00 05 00 00
00 01 00 00 00
array_p.cpp(105) : {141} normal block at 0x002F89F8, 20
bytes long.
 Data: <t`/ t`/         > 74 60 2F 00 74 60 2F 00 CD CD CD
CD CD CD CD CD
bardock.cpp(739) : {138} normal block at 0x002F8890, 176
bytes long.
 Data: < y |            > D4 79 14 7C CD CD CD CD CD CD CD
CD CD CD CD CD
{137} client block at 0x002F87F8, subtype c0, 88 bytes
long.
a CSunbedListCtrl object at $002F87F8, 88 bytes long
bardock.cpp(739) : {125} normal block at 0x002F80C0, 176
bytes long.
 Data: < y |            > D4 79 14 7C CD CD CD CD CD CD CD
CD CD CD CD CD
{124} normal block at 0x002F8298, 21 bytes long.
 Data: <  .|            > 10 FF 2E 7C 04 00 00 00 04 00 00
00 01 00 00 00
{123} normal block at 0x002F8248, 20 bytes long.
 Data: <  .|            > 10 FF 2E 7C 03 00 00 00 03 00 00
00 01 00 00 00
{122} normal block at 0x002F81F8, 20 bytes long.
 Data: <  .|            > 10 FF 2E 7C 03 00 00 00 03 00 00
00 01 00 00 00
{119} normal block at 0x002F8030, 80 bytes long.

08 00 00 00 00
{106} normal block at 0x002F6438, 35 bytes long.
 Data: <  .|            > 10 FF 2E 7C 12 00 00 00 12 00 00
00 01 00 00 00
{98} client block at 0x002F5360, subtype c0, 24 bytes long.
a CSerialPort object at $002F5360, 24 bytes long
c:\documents and settings\myapp.cpp(128) : {97} client
block at 0x002F5D28, subtype c0, 1184 bytes long.
a CMainFrame object at $002F5D28, 1184 bytes long
plex.cpp(27) : {96} normal block at 0x002F5C70, 124 bytes
long.
 Data: <             R/ > 00 00 00 00 00 00 00 00 00 00 00
00 90 52 2F 00
{95} client block at 0x002F58D8, subtype c0, 32 bytes long.
a CDocManager object at $002F58D8, 32 bytes long
{94} normal block at 0x002F5BC0, 113 bytes long.
 Data: <  .|`   `       > 10 FF 2E 7C 60 00 00 00 60 00 00
00 01 00 00 00
c:\documents and settings\myapp.cpp(122) : {93} client
block at 0x002F5290, subtype c0, 144 bytes long.
a CMultiDocTemplate object at $002F5290, 144 bytes long
{64} normal block at 0x002F50C8, 85 bytes long.
 Data: <  .|C   D       > 10 FF 2E 7C 43 00 00 00 44 00 00
00 01 00 00 00
{62} normal block at 0x002F5028, 23 bytes long.
 Data: <  .|            > 10 FF 2E 7C 06 00 00 00 06 00 00
00 01 00 00 00
{61} normal block at 0x002F33C8, 33 bytes long.
 Data: <  .|            > 10 FF 2E 7C 10 00 00 00 10 00 00
00 01 00 00 00
{60} normal block at 0x002F3378, 20 bytes long.
 Data: <     P/ $ .|$ .|> 04 00 00 00 D8 50 2F 00 24 FF 2E
7C 24 FF 2E 7C
{59} normal block at 0x002F3318, 32 bytes long.
 Data: < - |    |3/  3/ > E4 2D 15 7C 04 00 00 00 7C 33 2F
00 D8 33 2F 00
oleinit.cpp(85) : {56} client block at 0x002F3248, subtype
c0, 68 bytes long.
a CCmdTarget object at $002F3248, 68 bytes long
Object dump complete.
.



Mon, 28 Feb 2005 02:12:52 GMT  
 Exit code 0x3


Quote:
> I'm having problem resolving a memory leak, the
> destructors
> for the following classes are never called when I close my
> application:
> CMainFrame
> CDocManager
> CMultiDocTemplate
> CCmdTarget
> CWinApp

Looks like an MFC app -- you might have better luck asking in one of the
MFC groups.

--
dave



Wed, 02 Mar 2005 04:38:02 GMT  
 Exit code 0x3

Quote:

> > I'm having problem resolving a memory leak, the
> > destructors
> > for the following classes are never called when I close my
> > application:
> > CMainFrame
> > CDocManager
> > CMultiDocTemplate
> > CCmdTarget
> > CWinApp

How do you close your application?  Don't call exit();

--
Scott McPhillips [VC++ MVP]



Wed, 02 Mar 2005 07:14:34 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. DLL exiting with exit code 0x03

2. exit(1), exit(2), exit(3) ....???

3. Exit code?

4. newbie question about return values/exit codes

5. Curious about exit codes

6. gdb exit codes

7. Exit code 252

8. Help...xxgdb exit code ?

9. Help! Program has exited with code -2147220999 (0x800401F9)

10. "Thread 0XFFE6818D has exited with code -1 (0xFFFFFFFF)

11. Exit code 3

 

 
Powered by phpBB® Forum Software