|
You have to call _endthread from within the thread you are trying to end. Also, nothing will execute after an _endthread() as it functions very similarly to a "return".
If you want to avoid multi-threading, download RoboCon from my website and look through its source. It uses the built-in timeouts to accomplish a very similar thing to multithreading.
|