Thank you. I will be using that, a much more elegant solution
Cheers,R.
In reply to Re^2: Does the main thread yield? by Random_Walk in thread Does the main thread yield? by Random_Walk