Can a suspended thread be aborted?-Collection of common programming errors
I created a thread and that thread can be suspended. So, how do I kill or terminate a suspended thread?
I tried to ABORT the thread and I got a runtime error message saying that the thread is suspended and it can’t be aborted. I’ve looked for terminate method or something similar and it doesn’t seem to exist.
myThread := new Thread(@BigLoop);
myThread.Start;
myThread.Suspend;
myThread.Abort;