Page 1 of 1

OnConnectionLost event not firing ?

Posted: Sat 25 Oct 2008 16:42
by chihebbs
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

Posted: Mon 27 Oct 2008 11:09
by Dimon
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.