Subject Re: Problems loading a UDF library that uses ib_util
Author Andrew Monteith
--- In firebird-support@yahoogroups.com, Nando Dessena <nandod@t...>
wrote:
>
N> I am developing an UDF library in Delphi; as soon as I statically
link
N> ib_util.dll Firebird (tried with 1.0 and 1.5) stops loading my
library
N> when I call the functions.> is this such an unusual problem?
>
> Ciao
> --
> Nando mailto:nandod@d...
Hi Nando

This comes from
3130 - Building UDF Libraries
By Gregory H. Deatz
Updated by Craig Stuntz
on
http://delphi.weblogs.com/discuss/msgReader$106?mode=topic


uses
IBExternals, IBHeader, IbIntf;

...and add the following lines to the initialization section:

initialization
IsMultiThread := TRUE; //You already did this one, right? :)
CheckIBLoaded; //This makes it possible to call IB API functions.


HTH
Andrew Monteith