Subject | Re: [firebird-support] How do i make my UDF Thread/Multiuser Safe ? |
---|---|
Author | Ivan Prenosil |
Post date | 2007-03-09T13:28:50Z |
> can allocating new memory and freeing it with FREE_IT make my udfYou have to use ib_util.dll to allocate memory that will be freed by FREE_IT.
> thread/multiuser safe or i'll have to use Critical Section ?
>
> can following function be said thread safe ?
>
> Function TrimProper(AStr:PChar):PChar;
> Var
> I,L: Integer;
> begin
> L := StrLen(AStr);
> Result := StrAlloc(L);
e.g.
function ib_util_malloc(size: LongWord): Pointer; external 'ib_util.dll';
Ivan
http://www.volny.cz/iprenosil/interbase/