[fpc-devel] Bug in PWidechar and refcounting
DrDiettrich
drdiettrich at compuserve.de
Tue Feb 15 02:11:32 CET 2005
Alexey Barkovoy wrote:
> PAnsiChar, PChar are just pointers and not garbage collected by compiler. But
> AnsiString and WideString are compiler managed types. So, as Peter mentioned,
> behaviour you are seeing is by design.
In Delphi WideString is not reference counted at all. The layout of the
string prefix is dictated by the Windows API (BSTR type), and AFAIK
Windows also doesn't use reference counting with this type, or with
OLEVariants containing wide strings.
DoDi
More information about the fpc-devel
mailing list