Subject | Detecting crash server |
---|---|
Author | kokok_kokok |
Post date | 2004-01-21T16:53:19Z |
For some reason, my app can crash a remote server.
I need to detect when the connection is lost, in my app. I tried to
use TIB_Connection.Connected propery, but it is always true.
To simulate it, I start my program, then from Firebird Server
Control, I stop the service, then I execute some SQL sentence in my
program.
The "connection lost" exception appears, but the
TIB_Connection.Connected property is true.
I suppose that this property indicates another thing, but I would
like to known how I can detect is the current connection is valid.
Thanks in advance
I need to detect when the connection is lost, in my app. I tried to
use TIB_Connection.Connected propery, but it is always true.
To simulate it, I start my program, then from Firebird Server
Control, I stop the service, then I execute some SQL sentence in my
program.
The "connection lost" exception appears, but the
TIB_Connection.Connected property is true.
I suppose that this property indicates another thing, but I would
like to known how I can detect is the current connection is valid.
Thanks in advance