TMSConnection OnConnectionLost is not firing on Windows 7
Posted: Thu 27 Oct 2011 22:03
I've been working with restoring lost connections, and everything is working well on XP:
- If I disable the network adapter, the ConnectionLost event fires immediately when I try to do any database related activity, and I use rmReconnectExecute to re-establish the connection.
If I physically disconnect the network cable, the same thing occurs.
- If I disable the network adapter, the ConnectionLost event fires, and I use rmReconnectExecute to re-establish the connection.
If I physically disconnect the network cable, the OnConnectionLost event does not fire. Instead, there is long timeout, and then the application raises two exceptions:
Code: Select all
Project myApplication.exe raised exception class EMSError with message 'TCP Provider: The semaphore timeout period has expired.'
Code: Select all
Project myApplication.exe raised exception class EOLEDBError with message 'Communication link failure'.