Subject | Re: [IBO] Re: Default Session or Connection in DLL |
---|---|
Author | Geoff Worboys |
Post date | 2003-05-21T02:28:19Z |
> I'm having some problems with this. I could actually "force"I found the following in the IBO Online FAQ but searching for
> my connection in the DLL by :
> IBOQuery1.IB_Session.DefaultSession.DefaultConnection := DB;
the "DLL Issues" keyword.
http://faq.ibobjects.com/scripts/ibofaq.dll
- - -
When trying to share a connection DON'T try to share the reference to
the IB_Connection component. Give every DLL its own TIB_Connection and
simply share the connection handle between them. Use the dbHandle
property and assign the value from it to the dbHandleShared property
of the TIB_Connection components in the DLL instances. Use whatever
means you want to pass the value, since it is just a simple integer.
One vital point: close the TIB_Connection in the EXE before you
terminate or destroy the DLL calls. Releasing the DLL resources before
you close the TIB_Connection can cause some messy problems at
termination!
- - -
HTH
--
Geoff Worboys
Telesis Computing