On Wed, Oct 20, 2010 at 20:33, Michael Van Canneyt
<[email protected]> wrote:
> Can you post the fixed code ? (with optimizations or without, does not
> matter)

Attached. The fix is rather clumsy though.
I vaguely remember that Delphi (or was it some library we used...)
had something like IncRefCount procedure specifically for such cases,
but I was unable to find FPC analog (except fpc_AnsiStr_Incr_Ref which
is not directly callable).

-- 
Alexander S. Klenin

Attachment: uhla.pas
Description: Binary data

_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to