[fpc-pascal] Leak narrowed down

Tobias Giesen tobias_subscriber at tgtools.com
Wed Oct 27 18:18:50 CEST 2010


Hello,

I have narrowed the leak down. It's not in FPC. It's in the LCL or most
likely in the Carbon interface. It leaks memory outside of the FPC heap.
Probably some CFStrings or other Carbon data types.

It's caused be the following line:

Lb.Width:=Lb.Canvas.GetTextWidth(Lb.Caption);

For now I can avoid doing this. If I come up with a fix, I'll post it to
the Lazarus list.

Cheers,
Tobias




More information about the fpc-pascal mailing list