|
-
May 10th, 2012, 08:10 PM
#9
Re: Different option for Thread.Sleep?
 Originally Posted by BigEd781
No, it doesn't. It suspends the thread it was called on, no others. You need to remove that Sleep. However, if your program simply exits if you remove the sleep.... then I am perplexed as to why you need another thread in the first place. Hanging the main thread in a console app is fine if it is doing work....
If you need to wait three seconds, then that three second sleep should be in the timer's callback method.
I'm sorry I dont understand what you mean.
What do I have to do here?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|