|Subject||Re: [IBO] Using TIB_SessionProps to catch exceptions|
> That sounds correct to me. That should be only the one (default)Thanks for the answers so far.
> IB_Session in your situation and that is the one IB_SessionProps
> should attach to.
> If you put a breakpoint in TIB_SessionBase.HandleException (in
> IB_Session.pas) you should be able to trace where things are going.
> The FOnError event variable of the Session, called in
> HandleException should be set by TIB_SessionProps.
I realy got lost in the code.
The only place in that specific unit where I found a FOnError variable
is the following procedure
procedure TIB_SessionBase.DoHandleError( Sender: TObject;
const errcode: longint;
const SQLCODE: longint;
var RaiseException: boolean);
if Assigned( FOnError ) then
But this specific procedure does not get called not even if I trace into
I could not determine wether the session the components use is the
default session or wether it is the session I put on the datasource.
In IBA_Statement.IMP Line 278 there is the following code
if IB_Session.ClientMonitorHooksIn then
tmpStr := tmpStr + ' stHandle=' + IntToStr(Integer(FstHandle)) + '
ErrorMessage.Add( #13#10'STATEMENT:'#13#10 + tmpStr + #13#10 );
The ClientMonitorHooksIn always returns false. I dont know if this
helps, probably not because we know it does'nt because it does call its
I also use TIBODatabase. I dont know if the ib_sessionprops links into
the connection and transaction of the tibodatabase.