Subject | Switching from FB embedded to normal FB client |
---|---|
Author | Tom Munro Glass |
Post date | 2003-11-17T20:47:09Z |
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
[Non-text portions of this message have been removed]
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
[Non-text portions of this message have been removed]