PDA

View Full Version : How to find memory leak?


Holgerwa
09-Aug-2009, 02:30 PM
Hello,
I have enabled the memory leak detection in EurekaLog, and it reports a leak of 416 Bytes when my app closes. In the call stack I can get to the line where my main window is created, telling me that there is the problem.

Of course, something on the main form is causing the problem, but is there a way to get more into this? I would need to get more details on where exactly the problem occurs.

Marius
09-Aug-2009, 03:27 PM
Holgerwa wrote:


Hello,
I have enabled the memory leak detection in EurekaLog, and it reports
a leak of 416 Bytes when my app closes. In the call stack I can get
to the line where my main window is created, telling me that there is
the problem.

Of course, something on the main form is causing the problem, but is
there a way to get more into this? I would need to get more details
on where exactly the problem occurs.

I do not know what delphi you are using, but as soon as eurekalog
mentions memory leaks i activate memcheck which really does a
beautifull job pointing me to all my leaks. As soon as you close the application memeheck puts the cursor on the right line, pressing f9 goes to the next etc. I'm not sure if memcheck runs in 2007 and 2009.

Marius
09-Aug-2009, 03:28 PM
http://v.mahon.free.fr/pro/freeware/memcheck/

Alex
10-Aug-2009, 07:15 AM
Hi,

Please see if these articles can be of any help:
http://blog.eurekalog.com/?p=198
http://blog.eurekalog.com/?p=230