I just test using heaptrc for the first time. After reading some stuff about it, I only need to check -gh option for the project. I works because I have now
Heap dump by heaptrc unit
0 memory blocks allocated : 0/0
0 memory blocks freed : 0/0
0 unfreed memory blocks : 0
True heap size : 0
True free heap : 0
However , to test it, I just added
var
BitmapTemp : TBitmap;
begin
BitmapTemp := TBitmap.Create;to create leak in an empty form with a button, that delphi memory manager detetc :
An expected memory leak has occured, the unexpected small block leak are:
53-60 bytes: TBitmap x 1
109-116 bytes: TBitmapImage x 1
Why Lazarus heaptrc still output nothing
Heap dump by heaptrc unit
0 memory blocks allocated : 0/0
0 memory blocks freed : 0/0
0 unfreed memory blocks : 0
True heap size : 0
True free heap : 0
with just a simple example? Is there some other options to set to make it run properly?