Print Thread
Lost Connection
#726 07/27/00 07:02 PM
Joined: Mar 2000
Posts: 13
Reisterstown, MD, USA
I
igon Offline OP
Member
OP Offline
Member
I
Joined: Mar 2000
Posts: 13
Reisterstown, MD, USA
I am trying to find a way that if my application looses connection to the server that I can easily capture the error and attempt to reconnect or exit the application. I can fine no session error event to do this on. How can this best be accomplished with DOA.

Re: Lost Connection
#727 08/01/00 04:52 PM
Joined: Aug 1999
Posts: 22,206
Member
Offline
Member
Joined: Aug 1999
Posts: 22,206
There is no event that fires when the database connection is lost. What you can do is call TOracleSession.CheckConnection just before a transaction starts, on a timer basis, or at other strategic points in your application.

------------------
Marco Kalter
Allround Automations


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.095s Queries: 14 (0.026s) Memory: 2.4950 MB (Peak: 3.0393 MB) Data Comp: Off Server Time: 2024-04-29 07:42:03 UTC
Valid HTML 5 and Valid CSS