Subject Shared connection error handling
Author Ben M
In my dll I have a TIB_Connection whose dbHandleShared property I'm
setting, in order for it to share the connection of the host
application. I'm trying to write an OnError handler to recover from a
lost connection:

cx := (Sender as TIB_Connection);
if (ErrCode = isc_network_error) and not cx.VerifyConnection then
begin
cx.ForceDisconnect;
repeat
try
cx.Connect;
RaiseException := False;
Exit;
except
// show error message
end;
until res <> mrRetry;
end
else
RaiseException := True;

When executing the cx.Connect I get an isc_login error
(username/password not defined). What am I doing wrong?


[Non-text portions of this message have been removed]