sorry i dont know the answer, the problem is that your stuck in the loop until it finishes executing and its tying up all the resources.
what you are looking for is something similar to the DoEvents method in VB whereby other processes/threads get a slice of CPU time while the loop is still...
if you know the length of your loop..ie 1000 cycles (or whatever) it would be more useful to calculate the progress as a percentage and display that to the user....then not only do they see that something is happening, they also get an idea as to how long they have to wait.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.