Page 1 of 1

myDAC + onConnectionLost = problem

Posted: Wed 26 Dec 2007 19:57
by AlexMik
Could you help me to solve the following problem:

I'm having no problem with connection to database, but...
the event onConnectionLost doesn't work if connection lost action is immitated (for example: network cable is being removed).
What is the way to show the message window about connection problems?

Thank you for the replay.

Posted: Thu 27 Dec 2007 08:03
by Antaeus
You should also set the LocalFailover option of TMyConnection to True. The OnConnectionLost event will occur on first attempt to access server through this connection after it got broken.

Posted: Fri 28 Dec 2007 21:46
by AlexMik
Antaeus wrote:You should also set the LocalFailover option of TMyConnection to True. The OnConnectionLost event will occur on first attempt to access server through this connection after it got broken.
Thank you very much for the quick reply!