You can't call execute. The thread will execute and exit. If the thread is created as suspended, it will not be called until right after resume. If you need to you can run a loop inside execute, but when execute completes the thread is either freed or it is waiting to be freed (see FreeOnTerminate)
Resuming a thread that is complete will accomplish nothing. Resuming a suspended thread will do just that. 2010/7/12 Frank Church <[email protected]>: > > Can I take it that a thread will never execute until the Execute procedure > is called, and if the Execute procedure is exited, it will not run again > until called by the main thread? > > i.e Resuming a thread which has exited will achieve nothing unless it is > called within the scope of an existing Execute? > > -- > Frank Church > > ======================= > http://devblog.brahmancreations.com > > -- > _______________________________________________ > Lazarus mailing list > [email protected] > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
