Forum: Object-Pascal / Delphi-Language
Delphi
by alzaimar,
7. Feb 2008
Hi there.
Send a message from the thread to the main app. Let the thread die or not, this is up to you. The only thing what you should to is to let the main app know wether the thread is dead or not. This could be done by setting the 'FreeOnTerminate' property to false.
Ok, here are my ideas:
Procedure TMyThread.Execute;
Begin
While Not Terminated Do Begin
Forum: Object-Pascal / Delphi-Language
Delphi
by alzaimar,
4. Feb 2008
Why don't you send a message to the main form which then terminates your thread, waits for it and finally restarts the application?