On Mon, 7 Sep 2020, Bo Berglund via fpc-pascal wrote:

On Mon, 7 Sep 2020 12:40:07 +0200 (CEST), Michael Van Canneyt via
fpc-pascal
<fpc-pascal@lists.freepascal.org> wrote:

Why does the FpTimer event not fire?

Do you call checksynchronize at regular intervals ? The default timer is
threaded, and the OnTimer event is called in the main thread. For this to
work, you need to call checksynchronize at regular intervals in your main
thread.

Before I read your reply I tested another thing:
I dropped a regular timer from the component palette onto the form
intending to use that instead of FpTimer.

That is because you then add the LCL to the application, and in their
application object, they call checksynchronize on idle.

Even if you remove the LCL timer, the checksynchronize still will do it's job.

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to