Originally posted by: Argo
You're doing this wrong. Whoever wrote this is using a very awkward way to accomplish a simple task. It's equivalent of scratching your left ear with your right hand. I don't have time to examine the program in detail but I see a number of potential problem. I bet if you re-write your program, making it simpler you will get rid of the problem.