How do I create a thread and have it do nothing except wait to receive an event notification, at which point some code gets executed and once the code is complete, the thread goes idle again and waits for the next notification?
I've found that if you create and start a thread that doesn't do anything, it just starts, stops and is gone.
Thanks in advance
Joined: Apr 06, 2007
Mods can delete this post if they want. I've found a good solution here: