I found a bug
I tried to set RetryMode:=rmRaise; when connection lost. but Tuniconnection still to try connect again. it's happen the first time of connection lost, the second is not happen
procedure TMainForm.ConnectionConnectionLost(Sender: TObject;
Component: TComponent; ConnLostCause: TConnLostCause;
var RetryMode: TRetryMode);
begin
RetryMode:=rmRaise;
end;
bug RetryMode:=rmRaise;
-
- Posts: 31
- Joined: Sun 27 Jun 2010 20:50
[quote="AlexP"]
Please tell me how you checked that TUniConnection tries to connect again after connection loss? [/quote]
i used this demo
Demos\Win32\Miscellaneous\FailOver,
I set RetryMode:=rmRaise
I checked event AfterConnect, the program run this event
procedure TMainForm.ConnectionAfterConnect(Sender: TObject);
begin
btConnect.Enabled := False;
btDisconnect.Enabled := True;
btKillSession.Enabled := True;
end;
Please tell me how you checked that TUniConnection tries to connect again after connection loss? [/quote]
i used this demo
Demos\Win32\Miscellaneous\FailOver,
I set RetryMode:=rmRaise
I checked event AfterConnect, the program run this event
procedure TMainForm.ConnectionAfterConnect(Sender: TObject);
begin
btConnect.Enabled := False;
btDisconnect.Enabled := True;
btKillSession.Enabled := True;
end;
Hello,
I can not reproduce the problem.
In the FailOver demo project when I check the Failover checkbox and select 'Raise' in the RetryMode combobox, AfterConnect event doesn't arise after connection loss.
Please check that you really set the following property as
DM.Connection.Options.LocalFailover = true
RetryMode = rmRaise
I can not reproduce the problem.
In the FailOver demo project when I check the Failover checkbox and select 'Raise' in the RetryMode combobox, AfterConnect event doesn't arise after connection loss.
Please check that you really set the following property as
DM.Connection.Options.LocalFailover = true
RetryMode = rmRaise
-
- Posts: 31
- Joined: Sun 27 Jun 2010 20:50
I know the problem, because I set quDetail.Options.LocalMasterDetail:=false;AlexP wrote:Hello,
I can not reproduce the problem.
In the FailOver demo project when I check the Failover checkbox and select 'Raise' in the RetryMode combobox, AfterConnect event doesn't arise after connection loss.
Please check that you really set the following property as
DM.Connection.Options.LocalFailover = true
RetryMode = rmRaise
when I refresh the master,the detail try to refresh too. and Tuniconnetion run Event ConnectionAfterConnect. Although I set RetryMode with rmRaise, How to stop it??