Subject Re: [IBO] restoring a lost connection?
Author Arno Garrels
Hi Christian,

Something like this works for me:

if E is EIBO_ISCError then
with E as EIBO_ISCError do
if ConnectionLostErrcode( ERRCODE ) then
begin
dmMain.DatabaseX.ForceDisconnect; //silent on error
...
end;

Arno Garrels



----- Original Message -----
From: <c_pradelli@...>
To: <IBObjects@yahoogroups.com>
Sent: Friday, January 03, 2003 2:00 PM
Subject: [IBO] restoring a lost connection?


> Hi!
>
> I was testing IBO to see if I can reconnect to a database when I lost
> connection.
> I read a FAQ in IBO web page about this but I can't do it work. When I
> detect the lost of the connection I try to close the database but it
> raise
> an error:
>
> "This is a potential problem: 335544741"
>
> and there is no way to reconect.
>
> Am I doing something wrong?
>
> best regards
> Christian
>
>
>
>
>
___________________________________________________________________________
> IB Objects - direct, complete, custom connectivity to Firebird or
InterBase
> without the need for BDE, ODBC or any other layer.
>
___________________________________________________________________________
> http://www.ibobjects.com - your IBO community resource for Tech Info
papers,
> keyword-searchable FAQ, community code contributions and more !
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>