OnConnectionLost on remote connect
Posted: Thu 15 Oct 2015 15:23
Hi
I have a TUniConnection in my client program that connect to a remote database with IP address
I want to show a dialog if the connection lost , I have used OnConnectionLost event , but for example when I disconnect pc from Internet , the OnConnectionLost don`t occur ! ( or OnAfterDisconnect )
TUniconnection Options is :
DisconnectMode = False
AllowImplicitConnect = False
LocalFailOver = True
After disconnecting from Internet , TUniQueries are Inactive but OnConnectionLost don`t occur
It seems this event occurs only if connection get lost during a Query or Executing commands , is it True ?
How can I recognize if the connection failed ?
I`m using Delphi XE6 and MySQL
thanks
I have a TUniConnection in my client program that connect to a remote database with IP address
I want to show a dialog if the connection lost , I have used OnConnectionLost event , but for example when I disconnect pc from Internet , the OnConnectionLost don`t occur ! ( or OnAfterDisconnect )
TUniconnection Options is :
DisconnectMode = False
AllowImplicitConnect = False
LocalFailOver = True
After disconnecting from Internet , TUniQueries are Inactive but OnConnectionLost don`t occur
It seems this event occurs only if connection get lost during a Query or Executing commands , is it True ?
How can I recognize if the connection failed ?
I`m using Delphi XE6 and MySQL
thanks