Please don't error on if thread does not exist
Posted: Thu Jun 30, 2011 10:10 pm
PauseThread, ResumeThread, KillThread, etc. Considering threads are running independently, I've have some programs crash because of this:
Where the thread exists before it enters the "if" but does not while inside.
You can signal threads, yes. But what is the point of PauseThread if it's unsafe to be used?
Code: Select all
If ActiveThread
OldThread=ActiveThread
PauseThread(OldThread)
EndIf
You can signal threads, yes. But what is the point of PauseThread if it's unsafe to be used?