Einzelnen Beitrag anzeigen

Furtbichler
(Gast)

n/a Beiträge
 
#4

AW: Thread abschießen bei Programmende?

  Alt 22. Dez 2012, 14:49
WaitFor waits for the thread. He wants to avoid it.
Also, this
Delphi-Quellcode:
if not Thread.Suspended then
  ForceTerminate := True
else
 ForceTerminate := False;
can be shortened to

ForceTerminate := Not Thread.Suspended;
  Mit Zitat antworten Zitat