[Lazarus] heaptrc usage misunderstanding or memory leak in TForm
Roberto Padovani
padovani.r at gmail.com
Thu Feb 11 16:29:43 CET 2010
thanks all
I was pretty sure it was a misunderstanding of mine.
Roberto
2010/2/11 JoshyFun <joshyfun at gmail.com>:
> Hello Lazarus-List,
>
> Thursday, February 11, 2010, 3:44:16 PM, you wrote:
>
> RP> I added the unit Heaptrc to my program and there seem to be memory
> RP> leaks that i cannot find.
> RP> Then I tried to build an "empty" application to see when I introduced
> RP> the leaks, however even the following "empty" application seems to
> RP> have memory leaks.
> RP> To reproduce, just create a new application, add Heaptrc to the uses
> RP> clause and run.
> RP> I get 64 unfreed blocks.
> RP> Can anyone help to understand why?
>
> heaptrc must be the first unit in the .lpr file as it is more or less
> a memory manager.
>
> To simplify do not add heaptrc to the uses clause, use the appropiate
> setting in the compiler -> linker page of your project.
>
> If you do not show the 64 leaks it would be difficult to track them
> down.
>
> --
> Best regards,
> JoshyFun
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
More information about the Lazarus
mailing list