Pause a loop without stopping updating the UI

Is it possible to pause a loop in the main thread and still let the UI update?

I think I am running too many threads so the UI is not being updated until all the threads are finished.

I paused the thread and that helps when I am only running 1 or 2 threads, but if I start more than 2 threads, the UI waits until all the threads are finished.

For some reason, in Xojo 2013 r3.3, this is not a problem - but in Xojo 2017 r2.1 64-bit everything stops until all the threads are finished.

I see now this is a 64-bit issue