Subject Re: [IBO] Switching from FB embedded to normal FB client
Author Jason Wharton
If simultaneous usage is not required then you could get in under the hood
and safely use the se methods to free the one DLL and Load the other. I
think there may need to be some precautions taken, but go ahead and play
around with it and see what happens. I'd like to know.

And, I am trying to get things so it will be possible to use an explicit
TIB_Session component that refers to the client it will make use of and the
library will be one of its properties.

Jason Wharton

----- Original Message -----
From: "Tom Munro Glass" <tom@...>
To: <ibobjects@yahoogroups.com>
Sent: Monday, November 17, 2003 1:47 PM
Subject: [IBO] Switching from FB embedded to normal FB client


> I have an application that needs to be able to use FB embedded to access a
local database or the normal FB client to access a remote database. It will
always be working in one mode or the other - it does not need to use both
methods simultaneously. The reason for the requirement is because FB server
will not be installed on the machine running the application.
>
> I see that in IB_Session.pas the two methods AcquireOriginalHooks and
ReleaseSessionHookRef are responsible for loading/unloading the FB DLL, the
filename being provided by IB_Constants.IB_GDS32.
>
> My question is how can I use these methods to switch FB DLLs? Would it be
safe to do the following:
>
> Before starting any database operations, set IB_Constants.IB_GDS32 to
point at the appropriate DLL then call AcquireOriginalHooks. On completion
of all database operations call ReleaseSessionHookRef.
>
> Tom Munro Glass
>