<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi all.<br>
<br>
I'm running in trouble again when using "heaptrc" to trace memeory
leaks.<br>
Win64, Lazarus 0.9.31-35571, FPC 2.6.1<br>
Project options set:<br>
code generation all standard<br>
linking:<br>
<img src="cid:part1.07070405.09020708@sitasoftware.lu" alt=""
height="430" width="576"><br>
I have deliberately allocated one memory block of 16 bytes that is
not released (shown in heaptrc report)<br>
I have redirected the heaptrc output to a file, at the very
beginning of the program:<br>
project.lpr:<br>
{$IFDEF MEMORY_LEAKS}<br>
MLFile := ChangeFileExt(ParamStr(0), '.mlk');<br>
if FileExists(MLFile) then<br>
DeleteFile(MLFile);<br>
SetHeapTraceOutput(MLFile);<br>
{$ENDIF}<br>
and I get an heptrc report which contains:<br>
C:\Sources\compiled\LazArraysUIB.exe <br>
Heap dump by heaptrc unit<br>
9455 memory blocks allocated : 4020987/4035768<br>
9454 memory blocks freed : 4020971/4035752<br>
1 unfreed memory blocks : 16 <<===========================
sounds OK<br>
True heap size : 786432 (160 used in System startup)<br>
True free heap : 813088<br>
Should be : 786128<br>
Call trace for block $0000000000086ED0 size 16
<<========================== this is OK<br>
$000000000040FE8E<br>
$0000000000540A19<br>
$0000000000531EF9<br>
$000000000050E44A<br>
$0000000000586FA9<br>
$000000000052DC99<br>
$000000000053B4C7<br>
$00000000005B5237<br>
Where are gone the line references ?<br>
<br>
Any ideas ?<br>
BTW, same behaviour with Lazarus Win32 1.1-37027 FPC 2.6.1 on a
Vista Win32<br>
<br>
Antonio.<br>
</body>
</html>