I am using the Skype API, which sends back a message everytime it receives one. I am not sure if this really is what is causing it, but it's the closest I can get: When I send too many messages, the COM control can't handle all the replies, which causes it to crash the whole app. That happens when I use a for
loop.
I am using Threads to do the job, so my program won't hang. I know I can do Sleep();
in the thread, and will (should) not make the whole program sleep. The problem is though, that my COM control will be sleeping aswell, so it still wont be able to process whatever it needs, so it can keep up again.
So, the question is: How can I pause the routine without pausing the whole thread, so that the replies can be processed by my COM object, without overloading?