Is it possible to use a TFPTimer in the console of my Raspberry ZERO with FPC 3.2.2 ? Or is it not supported ?
It does not seem to run and i did see a access violation or two.
Anybody Example code ?
Greets, Wouter
Of course it is working on a form, but now in the console.
Now i am doing this:
procedure TAppProgBench.FTimerTimer(Sender: TObject);
begin
// log('Timer1Exec',yellow);
end;
//**************************************************************************************
FTimer := TFPTimer.Create(nil);
FTimer.OnTimer := @FTimerTimer;
FTimer.Interval := 1000; // in milliseconds
FTimer.Enabled := True;
FTimer.StartTimer;
//********
******************************************************************************
Anybody knows what to change ? Grtz W