@Xenno
WHERE IS YOUR MESSAGE LOOP
This about processing messages in a console application.
Ofcourse you can use a thread, but the TTimer already provides an option for that and it is not relevant!
That said, I have to explain my code a bit:
- normally you would write your message loop with PeekMessage / DispatchMessage on Windows and would maybe inadvertently draw in the LCL for that reason.
- CheckSynchronize is cross-platform, does the same and does not rely on the LCL
Hence the code works in console applications, but is much more lightweight than pulling in the LCL.