VS 2008 Team Edition and the object dump.
-
Hi, I'm maintaining an app that when I exit the application I get row after row of this:
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\strcore.cpp(141) : {33671} normal block at 0x02A2EA78, 21 bytes long. Data: <<N¤x > 3C 4E A4 78 04 00 00 00 04 00 00 00 01 00 00 00 d:\development\AppName\ProjectName\SomeFile.cpp(5716) : {33670} client block at 0x03897278, subtype c0, 2118 bytes long. a CNSFlexPropertyPage object at $03897278, 2118 bytes long Object dump complete. The program '[0xC90] AppName.exe: Native' has exited with code 0 (0x0).
Are these memory leaks? My fear is that they are memory leaks. :(( :wtf: X| Thanks! -
Hi, I'm maintaining an app that when I exit the application I get row after row of this:
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\strcore.cpp(141) : {33671} normal block at 0x02A2EA78, 21 bytes long. Data: <<N¤x > 3C 4E A4 78 04 00 00 00 04 00 00 00 01 00 00 00 d:\development\AppName\ProjectName\SomeFile.cpp(5716) : {33670} client block at 0x03897278, subtype c0, 2118 bytes long. a CNSFlexPropertyPage object at $03897278, 2118 bytes long Object dump complete. The program '[0xC90] AppName.exe: Native' has exited with code 0 (0x0).
Are these memory leaks? My fear is that they are memory leaks. :(( :wtf: X| Thanks!Like2Byte wrote:
Are these memory leaks? My fear is that they are memory leaks.
Yes. :) On the plus side, the dump tells you what line of code did the allocation that wasn't freed...way easier than trying to find it blindly.
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Like2Byte wrote:
Are these memory leaks? My fear is that they are memory leaks.
Yes. :) On the plus side, the dump tells you what line of code did the allocation that wasn't freed...way easier than trying to find it blindly.
Mark Salsbery Microsoft MVP - Visual C++ :java:
Thank you very much for your swift response. In the interim, I located this magic gem: Detected memory leaks! Dumping objects -> my list ensues. Subtracting the 6900 lines of front matter preceding the memory leak dump I'm left with 39011 lines of memory leak reports(or 19505 individual memory leak detections). That being said, I think I'm going to be sick. X|
-
Thank you very much for your swift response. In the interim, I located this magic gem: Detected memory leaks! Dumping objects -> my list ensues. Subtracting the 6900 lines of front matter preceding the memory leak dump I'm left with 39011 lines of memory leak reports(or 19505 individual memory leak detections). That being said, I think I'm going to be sick. X|
Like2Byte wrote:
I'm left with 39011 lines of memory leak reports(or 19505 individual memory leak detections).
Ouch. X|
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Hi, I'm maintaining an app that when I exit the application I get row after row of this:
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\strcore.cpp(141) : {33671} normal block at 0x02A2EA78, 21 bytes long. Data: <<N¤x > 3C 4E A4 78 04 00 00 00 04 00 00 00 01 00 00 00 d:\development\AppName\ProjectName\SomeFile.cpp(5716) : {33670} client block at 0x03897278, subtype c0, 2118 bytes long. a CNSFlexPropertyPage object at $03897278, 2118 bytes long Object dump complete. The program '[0xC90] AppName.exe: Native' has exited with code 0 (0x0).
Are these memory leaks? My fear is that they are memory leaks. :(( :wtf: X| Thanks!I will suggest you use http://www.codeproject.com/KB/applications/visualleakdetector.aspx[^] to pin point the leaks. -Saurabh
-
I will suggest you use http://www.codeproject.com/KB/applications/visualleakdetector.aspx[^] to pin point the leaks. -Saurabh
Thank you for pointing this out to me. I will give this try. I haven't read the entire link in detail but it looks very promising. I've looked through a few of the memory leaks and some are as simple as double* d = new double[nRecords*MAX_RECS]; ...stuff delete d; // where it should be delete[] d;
-
Hi, I'm maintaining an app that when I exit the application I get row after row of this:
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\strcore.cpp(141) : {33671} normal block at 0x02A2EA78, 21 bytes long. Data: <<N¤x > 3C 4E A4 78 04 00 00 00 04 00 00 00 01 00 00 00 d:\development\AppName\ProjectName\SomeFile.cpp(5716) : {33670} client block at 0x03897278, subtype c0, 2118 bytes long. a CNSFlexPropertyPage object at $03897278, 2118 bytes long Object dump complete. The program '[0xC90] AppName.exe: Native' has exited with code 0 (0x0).
Are these memory leaks? My fear is that they are memory leaks. :(( :wtf: X| Thanks!A memory leak like pointers but see Memory(-Leak) and Exception Trace (CRT and COM Leaks)[^]. ;)