[fpc-pascal] Cannot get TFPTimer to work
Michael Van Canneyt
michael at freepascal.org
Thu Dec 2 20:06:46 CET 2010
On Thu, 2 Dec 2010, Burkhard Carstens wrote:
> Am Donnerstag, 2. Dezember 2010 19:39 schrieb Darius Blaszyk:
>> Whatever I tried, I cannot get TFPTimer to work. Can someone help?
>> For some reason the OnTimer even is never fired. Tried on Windows and
>> Linux. Here's a snippet I used as test.
>>
>> Regards, Darius
>>
>
> [..]
>
>> begin
>> test := TBaseObj.Create;
>> for i := 1 to 1000 do
>
> begin
>
>> sleep(10);
>
> checkSynchronize;
> end;
>
>>
>> writeln('done');
>> readln;
>> end.
>
> Isn't OnTimerExec called using Synchronize?
Yes.
Michael.
More information about the fpc-pascal
mailing list