Possible to detect network problem?

Eric^2

Member²
If an application is open (attached to Oracle through DOA, but idle) and Oracle is shut down, the application crashes even when closing it - probably due to Oracle not being available for a proper "Logoff". Is there any way to prevent this crash, or have the session automatically disconnect (go Active := False) if the socket connection to the server is broken? Does Net8 even have a feature like this?
 
perhaps the TOracleSession.CheckConnection function can help you. It is not event-driven, so you need to call it at "the right moment" in your application to prevent uncontrolled exceptions.

------------------
Marco Kalter
Allround Automations
 
Back
Top