Michael Van Canneyt het geskryf: >> I am pretty sure it is the other way around, UnicodeString is the unicode >> version of AnsiString and is thus reference counted. WideString is the >> OLEstring compatible string, and is not reference counted. > > Correct.
In that case the FPC documentation is wrong. Then could you correct the ref documentation please - Section 3.2.5. As quoted below, the docs say WideString is reference counted. ----------[ FPC 2.4 language reference doc ]----------------- 3.2.5 WideStrings Widestrings (used to represent unicode character strings) are implemented in much the same way as ansistrings: reference counted, null-terminated arrays, only they are implemented as arrays of WideChars instead of regular Chars. -------------------------------------------------------------- Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/ _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal