[fpc-pascal] ANSI String concatenation eats Linux RAM ?

Peter Vreman peter at freepascal.org
Sun Sep 4 14:54:56 CEST 2005


>
> Dear all,
>
> I have a little problem (maybe in understanding) of the usage of the
> AnsiString.
>
> I use now FPC 1.0.6 (not updated yet to 2.0.0 as have fear that
> something in my old projects wont work)
>
> I will get right on the point.
> It seems to me that I can not use SA:=SA+'zzzzzzzzzzzzzzzzzzzzzzzzzz'
> large number of times repeatedly without draining my linux box out of
> RAM.
> (SA here being ansi string)

Possible cause is memory fragmentation. Please upgrade to 2.0.0 it has a
rewritten memory manager.






More information about the fpc-pascal mailing list