Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-11

How to use new "leakview" package?

2 messages · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

I just saw the new "leakview" package added to Lazarus trunk. How am I supposed to use it? This is what I have done.

* I saw the new "leakview" menu item under the Tools menu.
* The leakview dialog seems to require some file as input.
* I then recompiled my project with the heaptrc unit enabled.
* Ran my program as follow to output memory leaks (yes I have a few unfixed). ;-)
tutoradmin > log.trc 2>&1
* I then loaded the log.trc file in the leakview dialog and clicked "Update" button

..... Nothing Happened ......

Anybody that can give some help here?

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to Graeme Geldenhuys
Graeme Geldenhuys wrote
Hi, I just saw the new "leakview" package added to Lazarus trunk. How am I supposed to use it? This is what I have done.

OK, I made some progress.... By enabling the heaptrc log via the environment variable, and then loading that log file into the 'leak view' dialog populates the treeview with information.

$ export HEAPTRC="log=myheap.log"
$ ./tutoradmin.exe

[.... now load the myheap.log file ...]

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email