What about sleeps?

I made a telnet control where I couldnt figure out why my dataarrival was not getting kicked off, I threw a sleep(200) call in, with a do events in front and behind, and it worked.

I wouldnt recommend having this in there for it is not good programming practice, but use it to help try and debug. It helped point me to the area which was causing me to miss my arrival.

FYI: Sleep is an api call, which you pass the number of milliseconds i believe for which you want to wait.