Subject | Re: [IBO] backupService |
---|---|
Author | Markus Ostenried |
Post date | 2008-08-13T07:45:16Z |
On Wed, Aug 13, 2008 at 07:44, Thomas Steinmaurer <ts@...> wrote:
You can force IBO to load the client library with this code:
uses IB_Session;
// make sure the client library is loaded
if (@dll_service_attach = nil) then begin
Log(1, 'client library isn''t loaded yet -> RevertToOriginalHooks...');
RevertToOriginalHooks;
if (@dll_service_attach = nil) then begin
Log(1, 'Error...');
end else begin
Log(1, 'client library loaded.');
end;
end;
You need to make sure that RevertToOriginalHooks is declared in the
interface section of IB_Session, I'm not sure if that's the case by
default.
HTH,
Markus
> AFAIK, the IBOAdmin components have a weird IF condition somewhere whereI remember something like that, too.
> it checks if the client library has been loaded. It for sure gets loaded
> when being connected to the database.
You can force IBO to load the client library with this code:
uses IB_Session;
// make sure the client library is loaded
if (@dll_service_attach = nil) then begin
Log(1, 'client library isn''t loaded yet -> RevertToOriginalHooks...');
RevertToOriginalHooks;
if (@dll_service_attach = nil) then begin
Log(1, 'Error...');
end else begin
Log(1, 'client library loaded.');
end;
end;
You need to make sure that RevertToOriginalHooks is declared in the
interface section of IB_Session, I'm not sure if that's the case by
default.
HTH,
Markus