Re: Weird memory leak under XP (SP2)
Avoid static/global objects with non-trivial constructor and/or destructor.
For example, avoid CString's in your app class.
"Jim" <adirondackmtn@yahoo.com> wrote in message
news:105feefa-1205-47e5-b993-1907f6d7cbff@e25g2000prg.googlegroups.com...
Hi,
I finally upgraded my PC from win98 & now running XP SP2. I rebuilt
one of my many MFC apps (VC 6.0) and noticed memory leaks. I added a
return FALSE in InitInstance() of the main app, so there's no dialog
box and the leaks are still there:
Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-
Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll',
no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\comctl32.dll', no matching symbolic
information found.
Detected memory leaks!
Dumping objects ->
{45} normal block at 0x00322638, 33 bytes long.
Data: < C > 00 43 00 CD CD CD CD CD CD CD CD CD CD CD CD
CD
{44} normal block at 0x003225D0, 40 bytes long.
Data: < |L > 14 7C 4C 10 16 00 00 00 00 00 00 00 00 00 00
00
Object dump complete.
The thread 0xACC has exited with code 0 (0x0).
I noticed the odd double load of comctl32.dll. I created a dialog
based MFC app from scratch and that odd load isn't there. No leaks
either.
Anyone know what gives and what I can do about it? Please don't tell
me to re-create my app. I have a bunch of 'em. :(
Thanks,
Jim