Giuliano Colla schrieb: >> Isn't that where the dead lock occurs? Suppose Thr1 has just called >> Synchronize and is waiting until the main thread has executed the >> synchronized method, it won't terminate, because you have suppended >> the main thread by waiting for Thr1 to terminate. >> > I'm afraid you're right. > A really bullet proof way to terminate an application when even a single > thread using synchronize is running is far from straightforward, and > hard to generalize. > For this reason, and many others, I consider the synchronize method just > a hack.
Terminating threads is always not easy and hard to generalize. _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives