Connetion error diffetent in ver 6 to ver 10 ?
Posted: Fri 27 Jul 2018 06:04
I have been using this code in Delphi 6 for many years.
I have the same code in Delphi 10 Berlin however I get Lost Connection to MySQL after XXX number of minutes. If I ignore the error and continue, the program is fine.
So it looks like I'm getting the error message, the ConnectionLost is then triggered and it reconnects.
Is there something in 10 settings to ignore the temporary error message or something in Devart to fix this ?
Code: Select all
procedure TDM.RegisiterVerConnectionLost(Sender: TObject;
Component: TComponent; ConnLostCause: TConnLostCause;
var RetryMode: TRetryMode);
begin
RetryMode := rmReconnectExecute;
end;
So it looks like I'm getting the error message, the ConnectionLost is then triggered and it reconnects.
Is there something in 10 settings to ignore the temporary error message or something in Devart to fix this ?
