tenly2000
Programmer
- Jan 15, 2008
- 1
I've written a program which launches about 300 threads (40 at a time).
The loop that launches the threads includes
"update idleevents"
My main form should display the number of threads running, and the number that have already completed.
If I just sit and watch this, it works.
But if I minimize the window, or if I open any other window above my toplevel window, the gui seems to be frozen. Nothing updates on the screen, sometimes the screen goes all white, until the threads have all finished running...at which time the screen refreshes and everything is okay again.
How can I force the window to remain responsive and continue to update while I'm waiting for the threads to finish executing...?
Thanks in advance...
The loop that launches the threads includes
"update idleevents"
My main form should display the number of threads running, and the number that have already completed.
If I just sit and watch this, it works.
But if I minimize the window, or if I open any other window above my toplevel window, the gui seems to be frozen. Nothing updates on the screen, sometimes the screen goes all white, until the threads have all finished running...at which time the screen refreshes and everything is okay again.
How can I force the window to remain responsive and continue to update while I'm waiting for the threads to finish executing...?
Thanks in advance...