Aaron, Aaron Feng wrote: > ok, I took out the for loop and replaced it with sleep for 500msec > (assuming that is long enough?). It ran fine, I tried it a few times. I'll try to reproduce the problem. Can you send through the complete code, please? Matthias.