Subject Re: [IBO] Disconnected from server
Author Anthony Ison
Sorry, just found it a couple of messages below.

I need to use ForceDisconnect, but not during any exception processing.


----- Original Message -----
From: ""Anthony Ison"" <anthony@...>
Newsgroups: egroups.ibobjects
Sent: Tuesday, March 11, 2003 8:10 AM
Subject: [IBO] Disconnected from server

> Hi all,
> I have an application that is occassionally getting disconnected from the
> server. This could be caused by many things (eg. access violations in
> interbase, powering off the machine, etc). My application can handle
> situations and will continue on its merry way...
> I have a separate thread which starts up if it loses the server connection
> and polls for the server until it can find it again. (eg. The server may
> have been rebooted). The thread will then send a message to my app when
> database is found, and only then will I spend good VCL CPU cycles
> to connect to the server.
> Does this sound like a bad thing to do???
> The TIB_Connection which was killed prematurely still thinks it is
> connected. So when I try to reconnect, I attempt to set Connected to
> and that throws an exception because it can't talk to the server.
> Is there a way for me to do a reset or something so that the connection
> realises it is not connected anymore?
> Cheers.
> Anthony
> IB Objects - direct, complete, custom connectivity to Firebird or
> without the need for BDE, ODBC or any other layer.
> - your IBO community resource for Tech Info paper
> keyword-searchable FAQ, community code contributions and more !
> Your use of Yahoo! Groups is subject to