Subject RE: [IB-Conversions] \'RDO\' and \'FREE_IT\' problem with Firebird 1.5.4
Author Claudio Valderrama C.
> -----Original Message-----
> From: IB-Conversions@yahoogroups.com
> [mailto:IB-Conversions@yahoogroups.com]On Behalf Of MuraliM
> Sent: Viernes, 07 de Septiembre de 2007 3:24

> This UDF function is written in \'C\' and uses MALLOC for memory
> allocation of the return string.Both the above problems dint
> occur with Interbase 5.6.Please clarify.Thanks

Any UDF that creates memory for the server should use
ib_util_malloc
available in ib_util.h; this has been documented for ages but people didn't
pay much attention. It's the only way to ensure the server and the UDF use
the same heap.

Some poeple were lucky to make UDFs compiled with the stdcall work with IB
but it was always wrong: the calling convention is cdecl.

C.