Lost connection

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Posts: 101
Joined: Tue 01 May 2007 16:36

Lost connection

Post by ccmcbride » Mon 01 Oct 2007 20:59

I am using my application to connect to a server through a VPN connection.
I have added logic to the 'ConnectionLost' event of my connection.

I connect to the database, then disconnect the VPN connection.
My exception event handler is catching the exception, but the ConnectionLost event is not taking place.

Any ideas?

Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Tue 02 Oct 2007 09:44

Have you set the LocalFailover option of the TMSConnection component to True?
You can take a look at the "Working in an unstable network" topic of SDAC help for information about SDAC settings useful in unstable networks.

Post Reply