<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi folks.<br>
<br>
I've got a serious prblem too with debugger and heaptrc.<br>
It look like the one described by <b>Rainer Stratmann </b>posted
last month. My problem goes around the tracing of memory leaks.<br>
I've been busy with Martin on the Lazarus mailing list and he
couldn't find why addresses were not followed by their line
reference.<br>
Apparently all tracing references from the program seem to be
omitted or maybe better, unreachable.<br>
When I do a strip from the program executable it shrinks from 17 meg
down to 2.5 meg. So something is in it.<br>
I can see the memory leak I have generated (read below) but no
refecence to the line itself. Instead I receive the reference lines
before and after the memory leak creation inside the rtl.<br>
Environment:<br>
W7-win32, Lazarus 1.1 from 2012-06-11, WinCE target added and
compiles OK<br>
Project:<br>
Very simple project (one form, two buttons one to create a memory
leak, one to close)<br>
Redirect heaptrc output to a file<br>
Set compiler options for compiler and linker:<br>
do not use INLINE style C++<br>
-O- omit any optimization<br>
-g automatic debugger<br>
-gl add line numbers<br>
-gh use heaptrc<br>
-WG win32 program<br>
compile, link and run and get this:<br>
<i><b>c:\sources\compiled\TestUib.Exe <br>
Heap dump by heaptrc unit<br>
756 memory blocks allocated : 1539928/1541288<br>
755 memory blocks freed : 1539912/1541272<br>
1 unfreed memory blocks : 16</b></i> <<======== my block,
looks OK<br>
<i><b>True heap size : 655360 (96 used in System startup)<br>
True free heap : 658416<br>
Should be : 655184<br>
Call trace for block $001D62B0 size 16</b></i> <<========
my block, looks OK<br>
<i><b> $0040D628<br>
$004FAA4E TCONTROL__CLICK, line 2735 of
./include/control.inc<br>
$00512A7F TBUTTONCONTROL__CLICK, line 56 of
./include/buttoncontrol.inc<br>
$005130B6 TCUSTOMBUTTON__CLICK, line 175 of
./include/buttons.inc<br>
$00513711 TBUTTON__CLICK, line 355 of ./include/buttons.inc<br>
$005129AA TBUTTONCONTROL__WMDEFAULTCLICKED, line 26 of
./include/buttoncontrol.inc<br>
$0040AE56<br>
$004EDBEF TWINCONTROL__WNDPROC, line 5298 of
./include/wincontrol.inc</b></i><br>
Thea ddress <i><b>$0040D628</b></i> corresponds to the function
Reallocmem function used to get the memory block<br>
<br>
Problem is that I need to debug a complicated package which leaves a
lot of memory leaks that I have to trace and correct.<br>
<br>
Antonio.<br>
<br>
</body>
</html>