On Mon, 15 Aug 2011 19:41:24 +0200
"Ludo Brands" <[email protected]> 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

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to