Re: How to detect disconnect
From: Jeremy Collins (jd.collins_at_ntlworld-not.com)
Date: 02/25/05
- Next message: kei: "Re: How to clone a TADOQuery"
- Previous message: Kjell Rilbe: "Re: AsyncExecute blocks new connection on Connect:=True"
- Next in thread: Sunil Furtado: "Re: How to detect disconnect"
- Maybe reply: Sunil Furtado: "Re: How to detect disconnect"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 25 Feb 2005 07:28:06 +0000
Bob Murdoch wrote:
> I'm using a TADOConnection to connect to an Oracle database over a dialup
> network connection. At times this dialup connection can drop. When this
> happens, the TADOConnection still shows connected (the OnDisconnect or
> OnAfterDisconnect events do not fire).
>
> The TIBDatabase from IB Express have a TestConnected method. Is there
> anything similar in ADO?
I suppose you could do a periodic ping (not the best idea in the
world), but AFAIK all you can do with this situation is handle the
exception gracefully when it happens.
-- jc Remove the -not from email
- Next message: kei: "Re: How to clone a TADOQuery"
- Previous message: Kjell Rilbe: "Re: AsyncExecute blocks new connection on Connect:=True"
- Next in thread: Sunil Furtado: "Re: How to detect disconnect"
- Maybe reply: Sunil Furtado: "Re: How to detect disconnect"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|