Re: ado.connected:=false fails
From: Brian Bushay TeamB (BBushay_at_Nmpls.com)
Date: 12/22/04
- Previous message: Jon Purvis: "Re: sql problem"
- In reply to: Jozza: "ado.connected:=false fails"
- Next in thread: Jozza: "Re: ado.connected:=false fails"
- Reply: Jozza: "Re: ado.connected:=false fails"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 21 Dec 2004 18:40:15 -0600
>My network fails, and when i execute an ado (TAdoConnection) statement i get
>an error from the odbc driver that connection has been lost.
>Ado.connected returns true at this time. But when i try to reconnect by
>first setting ado.connected:=false it fails with an error from the odbc
>driver and ado.connected is still true. I cant find a way to reconnect even
>if i free the adoConnection object it fails to free. Is there a solution to
>this?
Are you really freeing the ConnectionObject?
You code should look like this.
ADOConnection1.Connected := false;
ADOConnection1.ConnectionObject := Nil;
-- Brian Bushay (TeamB) Bbushay@NMPLS.com
- Previous message: Jon Purvis: "Re: sql problem"
- In reply to: Jozza: "ado.connected:=false fails"
- Next in thread: Jozza: "Re: ado.connected:=false fails"
- Reply: Jozza: "Re: ado.connected:=false fails"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|