Disabling a TIWTimer in a Async event allows its events to execute once more
7/29/2009
Bug Description: When you disable a TIWTimer in a Async event, the TIWTimer events will be executed at least once more. Affected Browsers: All Workaround:
Check if the IWTimer is enabled before executing your code. procedure TIWForm1.IWTimer1AsyncTimer(Sender: TObject; EventParams: TStringList); begin if IWTimer1.Enabled then IWLabel1.Caption := IWLabel1.Caption + '0'; end;
procedure TIWForm1.IWButton1AsyncClick(Sender: TObject; EventParams: TStringList); begin IWTimer1.Enabled := not IWTimer1.Enabled; end;
<<
Previous Entry Next Entry
>>
|