Subject Connection lost question
Author DanyM
Hello!

I have an error handler for the query and for the transaction. In this handler I do

if ConnectionLostErrcode( ERRCODE ) then begin
ConnectionDataModule.ConnectionLost;
RaiseException := false;
Abort;
end;

the ConnectionDataModule then calls an event handler in the GUI part that sends a windows message to the main form. The main form throws up a messagebox asking if we should try to reconnect.

My problem is that in the cases where the TIB_Transaction raised the exception there will often be another lost connection exception immediately after. At least when the first one came from an API_Start there will be another one from a following call to API_Committ.

How do I determine that I already handled one lost connection exception and that the following ones are just the following ones?

TIA,

/Dany