[Lazarus] heptrc

Antonio Fortuny a.fortuny at sitasoftware.lu
Thu Jun 7 09:20:12 CEST 2012

Hi all.

I'm running in trouble again when using "heaptrc" to trace memeory leaks.
Win64, Lazarus 0.9.31-35571, FPC 2.6.1
Project options set:
     code generation all standard

I have deliberately allocated one memory block of 16 bytes that is not 
released (shown in heaptrc report)
I have redirected the heaptrc output to a file, at the very beginning of 
the program:
   MLFile := ChangeFileExt(ParamStr(0), '.mlk');
   if FileExists(MLFile) then
and I get an heptrc report which contains:
Heap dump by heaptrc unit
9455 memory blocks allocated : 4020987/4035768
9454 memory blocks freed     : 4020971/4035752
1 unfreed memory blocks : 16 <<=========================== sounds OK
True heap size : 786432 (160 used in System startup)
True free heap : 813088
Should be : 786128
Call trace for block $0000000000086ED0 size 16 
<<========================== this is OK
Where are gone the line references ?

Any ideas ?
BTW, same behaviour with Lazarus Win32 1.1-37027 FPC 2.6.1 on a Vista Win32

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20120607/22ae7bec/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fhjbabid.png
Type: image/png
Size: 15284 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20120607/22ae7bec/attachment-0002.png>

More information about the Lazarus mailing list