When try to wait for a thread to be alive, but not call thread Start method, will get a lot of errors like this::The thread xxx has exited with code 259 (0x103)
workerThread = new Thread(StartMethod);
// workerThread.Start();
while (!workerThread.IsAlive) ;
:)
No comments:
Post a Comment