Einzelnen Beitrag anzeigen

Klaus01

Registriert seit: 30. Nov 2005
Ort: München
5.768 Beiträge
 
Delphi 10.4 Sydney
 
#8

Re: TThread.WaitFor verursacht einfrieren des Programmes

  Alt 29. Mär 2008, 21:21
Könnte das eventuell daran liegen?

FreeOnTerminate := true;
Zitat von DelphiHilfe:
Description

Set FreeOnTerminate to True if you don’t want to explicitly destroy threads after they finish executing. When FreeOnTerminate is False, the thread object must be explicitly destroyed in application code.

Warning: When FreeOnTerminate is True, the Execute method may run and then free the thread before your application can execute the next line of code. Thus, you should not call any methods of the thread object when FreeOnTerminate is True unless you create the thread in a suspended state.
Grüße
Klaus
Klaus
  Mit Zitat antworten Zitat