OnConnectionLost event not firing ?

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
chihebbs
Posts: 46
Joined: Tue 05 Jun 2007 20:06

OnConnectionLost event not firing ?

Post by chihebbs » Sat 25 Oct 2008 16:42

Can someone tell me please, where OnConnectionLost event is fired ? (included MemData but nothing is happening). How Can I prevent MyConnection from trying to connect again, even when Failed=false in OnError event, MyConnection is always trying to reconnect again. Am I missing something ?

using 5.55.039 CodeGear C++ 2007

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Mon 27 Oct 2008 11:09

The OnConnectionLost event is arised when the TMyConnection.Options.LocalFailover property is set to True to process fatal errors and perform failover.

To prevent reconnecting in TMyConnection you should set the TMyConnection.Options.DisconnectedMode property to False.

Post Reply