[Lazarus] timer in a console application
Michael Schnell
mschnell at lumino.de
Fri Aug 10 14:28:10 CEST 2012
On 08/10/2012 01:47 PM, Andrea Mauri wrote:
>
> Must I use in some way the threads?
>
That is exactly what Michael vC said in his mail.
In a console application the main thread just starts, does some
calculations and runs right until returning and with that terminates the
program. If you want to so a longer living thingy, you need to hols the
main thread e.g with sleep(). If during that time some "Event" needs to
be handled, only a thread can do this.
-Michael
More information about the Lazarus
mailing list