[Lazarus] RE : RE : RE : RE : RE : RE : RE : RE : Console App Development

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Aug 15 20:42:39 CEST 2011


On Mon, 15 Aug 2011 19:41:24 +0200
"Ludo Brands" <ludo.brands at free.fr> wrote:

>[...]
> Thanks for that info. That helps a lot.
> 
> Figured out in the meantime that indeed TCodeBuffer.Scanner.Src is the one
> hanging on to the source after a TCodeBuffer.IsDeleted:=true and that
> TCodeBuffer.Scanner.CleanedSrc has, at first sight, another copy of the
> source. Is this really a cache and re-used when reopening the file?

Yes.
The IDE uses only one codebuffer per file.
There are some exceptions, but these buffers live only for very a short
time.


> With the
> GTK2 widgedset I see an increase in memory allocated by TCodeBuffer when
> opening/closing/reopening the same files.

How much increase?

Mattias




More information about the Lazarus mailing list