I use TThread, I just need to find out if the thread is working, and stop the application if it takes a long time.
Example:
MyThread := TMyThread.Create; MyThread .Resume; MyThread.Terminate; total := 0; while MyThread.isRunning = true do // < i need something like this begin // show message to user to wait a little longer we are still doing stuff sleep(1000); total := total + 1000; if total > 60000 then exit; end;
Is this possible with Delphi?
multithreading delphi
uacaman
source share