On Sunday 30 December 2007 07.39:25 Micha Nelissen wrote:
> Martin Schreiber wrote:
> > You are right, there seems to be no race condition if one uses
> > WakeMainThread correct. There can be a deadlock if the main thread tries
> > to destroy a thread which is waiting for Synchronize.
>
> Hmm I think this is a very stupid idea to do. The thread will continue
> to execute something so I don't think this is supported. Like destroying
> a component in an event handler.
>
TThread.Destroy calls Waitfor.
What is the supported method to terminate an application which has threads 
waiting for Synchronize?

Martin

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to