Hi,
For first time I want to test TFPTimer but when I want to disable timer, application will be freeze.
Can any one test this code and tell me why?
var
Timer:TFPTimer;
procedure TForm1.Button4Click(Sender: TObject);
begin
timer:=TFPTimer.Create(self);
timer.OnTimer:=@TimerTick;
Timer.Interval:=100;
timer.StartTimer;
end;
procedure TForm1.TimerTick(Sender: TObject);
begin
self.Caption:='Finished';
Timer.StopTimer;
end;