Einzelnen Beitrag anzeigen

Blup

Registriert seit: 7. Aug 2008
Ort: Brandenburg
1.429 Beiträge
 
Delphi 10.4 Sydney
 
#5

AW: Threadsafe einen Zähler herunterzählen

  Alt 14. Mär 2016, 08:37
Zitat:
Note: The method assigned to the OnTerminate event is executed in the context of the main thread rather than the context of the thread being terminated. This means you can access the user interface of your application safely without calling the Synchronize method.
Das heist der Hauptthread wartet noch im WaitForMultipleObjects(), OnTerminate soll aber bereits im Hauptthread ausgeführt werden.
  Mit Zitat antworten Zitat