Re: How to detect disconnect

From: Jeremy Collins (jd.collins_at_ntlworld-not.com)
Date: 02/25/05


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


Relevant Pages

  • Re: How to replace a 1394 connection by a DialUp connection
    ... > I have not been able to use the Dialup Connection icon for connecting to ... > Connection dialog and I get connected too my I S P alright. ... > use the Network connection for setting up an Internet Account with my I S ... The device Manager shows a 1394 Network Adapter of Microsoft. ...
    (microsoft.public.windowsxp.network_web)
  • Network Wizard only creates Dialup VPN
    ... When I create a new VPN connection via the Network Connection Wizard on WinXP ... it will only create a dialup connection using my modem. ... I've found no other references to this kind of behavior and reinstalling SP2 ...
    (microsoft.public.windowsxp.network_web)
  • Re: No internet sharing after XP SP2 upgrade
    ... I have a totally different problem but this posting tells me that my problem ... I have not been able to use the Dialup Connection icon for connecting to my ... Connection dialog and I get connected too my I S P alright. ... use the Network connection for setting up an Internet Account with my I S P ...
    (microsoft.public.windowsxp.general)
  • Re: How to detect disconnect
    ... Try if quering the state property of the connection helps. ... > I'm using a TADOConnection to connect to an Oracle database over a dialup ... > network connection. ... At times this dialup connection can drop. ...
    (borland.public.delphi.database.ado)
  • How to replace a 1394 connection by a DialUp connection
    ... I have a totally different problem but this posting tells me that my problem ... I have not been able to use the Dialup Connection icon for connecting to my ... Connection dialog and I get connected too my I S P alright. ... use the Network connection for setting up an Internet Account with my I S P ...
    (microsoft.public.windowsxp.network_web)