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 _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel