[Lazarus] Memory leaks

Antonio Fortuny a.fortuny at sitasoftware.lu
Thu Nov 22 14:48:56 CET 2012


Hi guys, it's me again

Sorry but I'll post again about how to trace memory leaks using heaptrc.
Installation: Vista 32, Lazarus 1.1 2012/11/15 SVN rev. 39279, FPC 2.6.1
WinCE X-compiler installed.

Debug output is checked, but whatever the link configuration could be 
(automatic, stabs, Dwarf gives termination exceptions) with or without 
external dbg file, the only output I get from feaptrc is this:
D:\Compiled\Lazarus\i386-win32\Leonidas.exe
Heap dump by heaptrc unit
70122 memory blocks allocated : 32813701/32985056
70078 memory blocks freed     : 32813049/32984256
44 unfreed memory blocks : 652
True heap size : 1048576
True free heap : 1044224
Should be : 1044960
Call trace for block $001EA898 size 28
   $0060787C  IDSTACK_init,  line 937 of 
D:/Programmes/LazPk/Indy10_5_8/Lib/System/IdStack.pas
   $0040DBB4
   $004120D1
   $BAADF00D
   $BAADF00D
   $BAADF00D
   $BAADF00D
   $BAADF00D
Call trace for block $001E2FF0 size 10
   $004233DF
   $00423D5F
   $004120D1
   $BAADF00D
   $BAADF00D
   $BAADF00D
   $BAADF00D
   $BAADF00D
Call trace for block $001E30B0 size 17
   $004233DF
   $00423D5F
   $004120D1
   $BAADF00D
   $BAADF00D
   $BAADF00D
   $BAADF00D
   $BAADF00D
Call trace for block $001E3050 size 14
   $004233DF
...
Leak view does not give more explanations. BTW, what kind of file is 
requested by the button "Resolve" ?

Any help would be appreciated.

Antonio.





More information about the Lazarus mailing list