Subject | Re: [firebird-support] UDF:s and nulls |
---|---|
Author | Kjell Rilbe |
Post date | 2005-02-11T11:13:44Z |
Thanks Ivan - your doc was very instructive! I have one question though
(below).
Ivan Prenosil wrote:
terms).
And what if I use FB memory allocation:
procedure MyUDF(Result: PChar);
I can't free the passed buffer (well, I could but... urghhh...) and set
the pointer ot nil...
Kjell
--
--------------------------------------
Kjell Rilbe
Adressmarknaden AM AB
E-post: kjell.rilbe@...
Telefon: 08-761 06 55
Mobil: 0733-44 24 64
(below).
Ivan Prenosil wrote:
> * NULL can be returned from UDF, provided the valueHow? Set the returned pointer to nil (nil in pascal terms = null in C
> is passed by reference, not by value.
terms).
And what if I use FB memory allocation:
procedure MyUDF(Result: PChar);
I can't free the passed buffer (well, I could but... urghhh...) and set
the pointer ot nil...
Kjell
--
--------------------------------------
Kjell Rilbe
Adressmarknaden AM AB
E-post: kjell.rilbe@...
Telefon: 08-761 06 55
Mobil: 0733-44 24 64