Subject Re: [firebird-support] UDF:s and strings i Delphi
Author Kjell Rilbe
Pavel Menshchikov wrote:

> KR> Will myUDF cause buffer overruns if it writes more than 10 characters +
> KR> 0 terminator into the OutStr buffer?
> I think it produces an error, but I am not sure. Try to test it
> yourself...

OK. I will test if the need to really know arises. For the time being, I
know what the potential max length is.

> As I remember in multi-row
> SELECT <some UDF>,... FROM...
> FB allocates the memory just once and reuses it for every UDF calling
> - it may give you some preformance improvements as compared to in-UDF
> memory allocation and FREE_IT. But I am not sure, so try to test it
> yourself again :)

Reasonable. Again, I will test if I really need to find out.

Thanks! You've been very helpful.
Kjell
--
--------------------------------------
Kjell Rilbe
Adressmarknaden AM AB
E-post: kjell.rilbe@...
Telefon: 08-761 06 55
Mobil: 0733-44 24 64