Hey there,
thanks in advance
here is the buzz..
I'm calling a function from a .dll which launches various threads. Now the function that launches the threads, upon launching the threads, enters a loop that waits for all the threads to finish before the function exits. Now I think because this is such a tight loop, maybe it's caushing the whole program to freeze. How do I avoid this, someone suggested putting SLEEP in there but it didn't seem to work. Sometimes when i put a msgbox in there the threads do there thing fine and the program doesn't freeze, but this is not an alternative in the finished product. The question remains, how do I stop the program from freezing when running multiple threads and waiting for them to exit. There is no window so I cannot use dialog do events/etc.
------------------
thanks in advance
here is the buzz..
I'm calling a function from a .dll which launches various threads. Now the function that launches the threads, upon launching the threads, enters a loop that waits for all the threads to finish before the function exits. Now I think because this is such a tight loop, maybe it's caushing the whole program to freeze. How do I avoid this, someone suggested putting SLEEP in there but it didn't seem to work. Sometimes when i put a msgbox in there the threads do there thing fine and the program doesn't freeze, but this is not an alternative in the finished product. The question remains, how do I stop the program from freezing when running multiple threads and waiting for them to exit. There is no window so I cannot use dialog do events/etc.
------------------
Comment