[fpc-devel] String and UnicodeString and UTF8String
Thaddy
thaddy at thaddy.com
Fri Jan 14 13:52:52 CET 2011
On 14-1-2011 13:21, Hans-Peter Diettrich wrote:
> Sven Barth schrieb:
>
>>>> Widestring will also grind the application to a halt due to being COM
>>>> based
>>>> on Windows.
>>>
>>> How that?
>>>
>>>
>>
>> WideString on Windows has no reference counting, thus everytime a
>> WideString is assigned it needs to be copied.
>
> I'm not so sure of that. AFAIR the field exists, but it's unused or
> reserved for shared memory management.
>
>
Yes, if you use the set of memory allocators I mentioned the field
*will* be used. COM marshalling.
No com, no count. simple as that. It is unused, because the memory
manager doesn't use it.
com is not implemented, unless you use a com based memory manager. No
com, no reference count.
More information about the fpc-devel
mailing list