[Lazarus] heaptrc usage misunderstanding or memory leak in TForm

Vincent Snijders vsnijders at vodafonevast.nl
Thu Feb 11 16:09:14 CET 2010


Roberto Padovani schreef:
> Hi list,
> 
> I added the unit Heaptrc to my program and there seem to be memory
> leaks that i cannot find.
> Then I tried to build an "empty" application to see when I introduced
> the leaks, however even the following "empty" application seems to
> have memory leaks.
> To reproduce, just create a new application, add Heaptrc to the uses
> clause and run.
> I get 64 unfreed blocks.
> 
> Can anyone help to understand why?
> 

You should add the heaptrc add as first unit to the main program (or let the 
compiler do that by compiling with -gh).

Vincent




More information about the Lazarus mailing list