Board index » delphi » Close main frame when threads work is done

Close main frame when threads work is done

Hi,

how do I close the main frame / stop the application running after my
threads work is done? Calling mainframe.close at the end of execute
doesn't work.

Regards,
Christph

 

Re:Close main frame when threads work is done


Quote
> how do I close the main frame / stop the application running after my
> threads work is done? Calling mainframe.close at the end of execute
> doesn't work.

Put code in the Thread.OnTerminate handler.

- Matt

Re:Close main frame when threads work is done


Quote

> Put code in the Thread.OnTerminate handler.

Can you give me some sample code?
Thanks, Christoph

Other Threads