TMtxProgressDialog.Stop Method

void Stop

Stop executing the thread.

Result: stored in self (calling object)

Remarks:

This is a blocking call in contrast to setting the Dew.Math.Controls.TMtxProgressDialog.Cancel property to true which is a non-blocking call. The method will not exit until the thread has finished and all the related data structures are cleaned up. Usually a request is given to stop execution in the OnDisposing event of the main form, to cancel potential execution of the background thread. If the thread is not running, method will exit immeditally.