Forum: Object-Pascal / Delphi-Language
Delphi
by FaNIX,
4. Feb 2008
Yes I thought of that, but I'm not sure how to send a message to my Main application once the thread as terminated.
As i said, the Main application must terminate, depending on the outcome of the thread. So the thread should first finish before the outcome is known, and only then can the Main application be terminated.
Forum: Object-Pascal / Delphi-Language
Delphi
by FaNIX,
1. Feb 2008
Thank your for your feedback, back some code will help more
Forum: Object-Pascal / Delphi-Language
Delphi
by FaNIX,
1. Feb 2008
Hi People,
I am trying to restart my Main Application by using code inside a Thread. Basicly my restart function works 100% when placed inside the Main Application code. But since a TThread runs in another memory space, i think reference to the Application.Terminate is not set to the Main Application, maybe to the thread, I don't know.
Here is my restart procedure inside my Thread:
...