Subject | Re: [firebird-support] Help needed, gen_uuid() UDF for 2.0 |
---|---|
Author | Dmitry Yemanov |
Post date | 2007-07-06T12:16:16Z |
Sasha wrote:
the Delphi memory manager?
Always use ib_util_malloc() to allocate memory for the UDF result string
declared as FREE_IT.
Dmitry
>Do you really believe Firebird knows how to free the memory allocated by
> function gen_uuid: PChar;
> var
> uid: TGUID;
> begin
> CreateGUID(uid);
> GetMem(Result, SizeOf(TGUID));
the Delphi memory manager?
Always use ib_util_malloc() to allocate memory for the UDF result string
declared as FREE_IT.
Dmitry