![]() |
| ||
| Theading problem Hey guys, my main thread seems to stop when i start 2 new threads and start them off. It sits and waits for the 2 threads to finish. The two threads are created off a factory class. Is this why? Its not created in the GUI class? Cheers. |
| ||
| Re: Theading problem when those others are launched, does it contain something like ? Thread.CurrentThread.Suspend() or myThreadName.Join() |
| ||
| Re: Theading problem it contains a join(), but shouldn't all threads spawned from the parent contain this? |
| ||
| Re: Theading problem the join will let you know when the thread has been completed, but will also block the calling thread (as in your case the ui is unresponsive), when waiting for the threads to complete i'm not sure how your threads exit, but while waiting you can check either ThreadState or IsAlive |
| All times are GMT -4. The time now is 10:17 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC