[fpc-pascal]About ansistrings.

Florian Klaempfl Florian.Klaempfl at gmx.de
Mon Jan 1 11:01:13 CET 2001

At 19:29 31.12.00 +0100, you wrote:
>Hello Florian,
>Sunday, December 31, 2000, 7:20:20 PM, you wrote:
> >>what about FillChar() to zero when the string is already set?
>FK> This will fail. Then you've to do a
>FK> finalize(data);
>FK> fillchar(data,sizeof(data),0);
>what does finalize() exactly? does it free all ansistrings or does it

It decreases the reference counters of all ref. counted data (ansistrings,
widestring, dyn. arrays and interfaces). If the ref. count is zero,
the data is disposed/released and the field is set to zero.

>i could not find it in the docs...

Because it is in the development branch (1.1) only as well as interfaces
and dyn. arrays.

More information about the fpc-pascal mailing list