Originally Posted by ever_thus
I'm not sure I understand. The message loop runs countless times and we don't want to start a thread in each iteration. Also what do you return from; CreateThread returns immediately.

Could you possibly post the psuedocode?
What I meant by the message loop and return is that in the event handler of the message I create the thread and return and so that the other messages just dont get blocked.