[fpc-devel] Widestring and reference counting

peter green plugwash at p10link.net
Sat Nov 24 15:08:13 CET 2007


> Using the following example program and compiling with 'fpc -al
> wstest.pas'  under Linux to see the assembler file (not that I can
> remember anything of how assembler works). Looking at the asm code I
> see a call to FPC_WIDESTR_INCR_REF which I assume confirms that
> WideStrings under Linux using FPC is also reference counted.
>
> Is the same true under Windows?  Does that mean FPC doesn't have the
> WideString issues Delphi has?
>
>   
Widestrings under windows are not reference counted for OLE 
compatibility, on all other platforms they are reference counted.




More information about the fpc-devel mailing list