Subject Re: [IBO] How to reconnect to DB II
Author Jason Wharton
Yes, there are various errcodes that indicate a lost connection.
I can't specifically remember but I have them in a ConnectionWasLost list.
Please snoop the sources and let me know if you can't find it. I'd find it
now but I'm hoppin busy.

Jason

----- Original Message -----
From: "Andreas Bednarek" <bluehorse@...>
To: <IBObjects@yahoogroups.com>
Sent: Friday, January 23, 2004 2:27 AM
Subject: Re: [IBO] How to reconnect to DB II


> > >
> > > if ERRCODE = 335544721 then begin
> > > Disconnect;
> > > Connect;
> > > end;
> > >
> >
> > Do NOT make any calls in the OnError event like Disconnect or Connect.
> > That is the wrong place to react to an error.
> > You should only set flags and most of the time raise an exception or
allow
> > the default exception to be raised.
> >
> > Jason Wharton
> > www.ibobjects.com
>
> Thanks for the tip Jason, good to know that. Do I have to track another
> ERRCODE values than the mentioned 335544721, too? I mean for the case that
> connection was lost and I should try to reconnect?
>
> Thanks
> Andreas