Hello,
Although I use the following event, the program still inserts last records again at reconnect.
What can I do to prevent it? Thank you!
procedure TAdatForm.MyConnectionConnectionLost(Sender: TObject;
Component: TComponent; ConnLostCause: TConnLostCause;
var RetryMode: TRetryMode);
begin
RetryMode := rmReconnect; // rmReconnect,rmReconnectExecute,rmRaise
end;
MyConnectionConnectionLost - inserts last records when rmReconnect
Re: MyConnectionConnectionLost - inserts last records when rmReconnect
Unfortunately, we can't reproduce the issue.
Could you please try to reproduce it in our FailOver demo project and let us know the results? You can find this project in the: %MyDACDemos%\Miscellaneous\FailOver folder, where %MyDACDemos% is the path to MyDAC Demo projects on your computer.
If the issue persists, please describe the steps we need to take to reproduce it on our FailOver demo example.
Could you please try to reproduce it in our FailOver demo project and let us know the results? You can find this project in the: %MyDACDemos%\Miscellaneous\FailOver folder, where %MyDACDemos% is the path to MyDAC Demo projects on your computer.
If the issue persists, please describe the steps we need to take to reproduce it on our FailOver demo example.