how to find memory leaks in attached dll
-
My applications uses many dll libs. I suspecting these dlls may has the memory leaks. All dll uses "#define new DEBUG_NEW" for memory allocation. when my application ends, the dll's teriminated before reporting memory leaks. because of that i can't find the leaks of dll(I think).
ListBoxs.DLL Terminating!
EVENTS.DLL Terminating!
Detected memory leaks!
Dumping objects ->
{174217} normal block at 0x04545900, 1024 bytes long.
Data: < > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD
{174216} normal block at 0x044E8A20, 36 bytes long.
Data: <HG YT YT > 48 47 97 01 A2 CD CD CD 00 59 54 04 00 59 54 04
{174215} normal block at 0x045454B8, 1024 bytes long.I need to get the memory leak info of ListBoxs.DLL & EVENTS.DLL how to get those dll leak details?
-
My applications uses many dll libs. I suspecting these dlls may has the memory leaks. All dll uses "#define new DEBUG_NEW" for memory allocation. when my application ends, the dll's teriminated before reporting memory leaks. because of that i can't find the leaks of dll(I think).
ListBoxs.DLL Terminating!
EVENTS.DLL Terminating!
Detected memory leaks!
Dumping objects ->
{174217} normal block at 0x04545900, 1024 bytes long.
Data: < > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD
{174216} normal block at 0x044E8A20, 36 bytes long.
Data: <HG YT YT > 48 47 97 01 A2 CD CD CD 00 59 54 04 00 59 54 04
{174215} normal block at 0x045454B8, 1024 bytes long.I need to get the memory leak info of ListBoxs.DLL & EVENTS.DLL how to get those dll leak details?
If your are OK in your LIBs and their clients code, you could control (for example by tracing) the symmetry of new/delete and constructor/destructor calls... ...or use a tool (for example Bounce Checker) :) At the Debugging print all addresses of used modules (Break->Debug->Views->Modules) to compare the ending output with them and know the module(s) of the leak(s).
virtual void BeHappy() = 0;
-
My applications uses many dll libs. I suspecting these dlls may has the memory leaks. All dll uses "#define new DEBUG_NEW" for memory allocation. when my application ends, the dll's teriminated before reporting memory leaks. because of that i can't find the leaks of dll(I think).
ListBoxs.DLL Terminating!
EVENTS.DLL Terminating!
Detected memory leaks!
Dumping objects ->
{174217} normal block at 0x04545900, 1024 bytes long.
Data: < > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD
{174216} normal block at 0x044E8A20, 36 bytes long.
Data: <HG YT YT > 48 47 97 01 A2 CD CD CD 00 59 54 04 00 59 54 04
{174215} normal block at 0x045454B8, 1024 bytes long.I need to get the memory leak info of ListBoxs.DLL & EVENTS.DLL how to get those dll leak details?
-
My applications uses many dll libs. I suspecting these dlls may has the memory leaks. All dll uses "#define new DEBUG_NEW" for memory allocation. when my application ends, the dll's teriminated before reporting memory leaks. because of that i can't find the leaks of dll(I think).
ListBoxs.DLL Terminating!
EVENTS.DLL Terminating!
Detected memory leaks!
Dumping objects ->
{174217} normal block at 0x04545900, 1024 bytes long.
Data: < > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD
{174216} normal block at 0x044E8A20, 36 bytes long.
Data: <HG YT YT > 48 47 97 01 A2 CD CD CD 00 59 54 04 00 59 54 04
{174215} normal block at 0x045454B8, 1024 bytes long.I need to get the memory leak info of ListBoxs.DLL & EVENTS.DLL how to get those dll leak details?
Bound Checker!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You
-
My applications uses many dll libs. I suspecting these dlls may has the memory leaks. All dll uses "#define new DEBUG_NEW" for memory allocation. when my application ends, the dll's teriminated before reporting memory leaks. because of that i can't find the leaks of dll(I think).
ListBoxs.DLL Terminating!
EVENTS.DLL Terminating!
Detected memory leaks!
Dumping objects ->
{174217} normal block at 0x04545900, 1024 bytes long.
Data: < > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD
{174216} normal block at 0x044E8A20, 36 bytes long.
Data: <HG YT YT > 48 47 97 01 A2 CD CD CD 00 59 54 04 00 59 54 04
{174215} normal block at 0x045454B8, 1024 bytes long.I need to get the memory leak info of ListBoxs.DLL & EVENTS.DLL how to get those dll leak details?