Subject Re: [ib-support] malloc / free_it questions (was: Using UDF: "Connection Lost to Database")
Author Frank Ingermann
Hi Raymond,

Raymond Kennington wrote:
>>
>>declare external function f_lrTrim
>> cstring(254)
>> returns
>> cstring(254) /* free_it */
>> entry_point 'lrTrim' module_name 'FreeUDFLib.dll';
>
> Why is /* free_it */ commented out?

my last msg ended with "calling all malloc / free_it experts", which was a nice
little workaround for "i have no idea"<g>, sorry. it obviously relates to the part:

(*
* Define FREE_IT if you want to use the free_it clause with your stuff
* - uncomment below "commented" define
*)

{//$define FREE_IT}

in udf_glob.pas, but that's all i can say. IB/FB is damn stable, and from all i
heard badly written String-UDFs are amongst the few ways to make it instable, so
i never went to the trouble to write one (as said, freeudf is enough for me).

So - could someone with more knowledge on the subject jump in please?

cheers,
fingerman

--
-------------------------------------------------------------------------
when parsers parse, and compilers compile, then why don't objects object?

fingerbirdy - fingerman's door to Firebird
http://www.fingerbird.de