[fpc-devel] TFPHashList (Was: Alternative parsers)
Hans-Peter Diettrich
DrDiettrich1 at aol.com
Thu Oct 21 15:44:00 CEST 2010
Marco van de Voort schrieb:
>> PChars, on the other hand, require manual memory management
>> which is the source of bugs.
>
> Point out the example of bugs. (ones that matter, not the stylistic ones)
The usage of PString essentially is using an crippled AnsiString,
without reference counting. I did not yet find any (obvious) bugs, but
several flaws where ShortStrings are allocated, copied and disposed for
no reason. See pmodules.try_consume_hintdirective.
DoDi
More information about the fpc-devel
mailing list