[Lazarus] heptrc

Antonio Fortuny a.fortuny at sitasoftware.lu
Tue Jun 12 15:14:02 CEST 2012

> Maybe the very first address is somewhere without debug info?
> The problem is that the stackdump permamently stops resolving, once 
> this happens.
> Since you are on 1.1
> please install the package LeakView - then go to tools menu and open 
> the leak view window
> load the data.
> there is a button "resolve". select the exe that leaked. it is a new 
> feature. it SHOULD resolve any address for which symbols exist
But it does not really :-\

I've prepared a new virtual machine with W7-Win32
Lazarus full 1.1 from 2012-06-11 + WinCE for cross-compile
Made a very simple project (one form, two buttons one to create a memory 
leak, one to close)
Redirect heaptrc output to a file
Set compiler options for compiler and linker:
-g automatic debugger
-gl add line numbers
-gh use heaptrc
-WG win32 program
compile, link and run and get this:
Heap dump by heaptrc unit
756 memory blocks allocated : 1539928/1541288
755 memory blocks freed     : 1539912/1541272
1 unfreed memory blocks : 16*/ <<======== my block, looks OK
/*True heap size : 655360 (96 used in System startup)
True free heap : 658416
Should be : 655184
Call trace for block $001D62B0 size 16*/ <<======== my block, looks OK
/*  $0040D628
   $004FAA4E  TCONTROL__CLICK,  line 2735 of ./include/control.inc
   $00512A7F  TBUTTONCONTROL__CLICK,  line 56 of ./include/buttoncontrol.inc
   $005130B6  TCUSTOMBUTTON__CLICK,  line 175 of ./include/buttons.inc
   $00513711  TBUTTON__CLICK,  line 355 of ./include/buttons.inc
   $004EDBEF  TWINCONTROL__WNDPROC,  line 5298 of ./include/wincontrol.inc
*/the result whether I use -gs or -g. I can easily guess that both blank 
lines with only an address are the two lines of my project
I've installed leakview but the Resolve button resolves anything with 
the project.exe
Thea ddress /*$0040D628*/ corresponds to the function Reallocmem 
function used to get the memory block

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20120612/71c7b958/attachment-0003.html>

More information about the Lazarus mailing list