No announcements
Found 2321941 threads
-
5 Votes
How to replace Thread.Sleep(Int32)
how do you think network packet collisions are handled?.Answered | 16 Replies | 33920 Views | Created by okh2 - Sunday, October 9, 2011 2:16 PM | Last reply by Randy Dodson - Tuesday, April 2, 2013 2:54 PM -
2 Votes
Thread.sleep question
Even if the sleep does run longer than intended, once you get to the part of your code that writes the messages to the socket, how long the thread slept doesn't matter.Answered | 19 Replies | 2889 Views | Created by aujong - Thursday, January 5, 2012 5:17 PM | Last reply by Mark Liu-lxf - Monday, January 9, 2012 3:23 AM -
0 Votes
How to write this without Thread.Sleep
Doing that with thread.sleep of a timer is little different.Answered | 7 Replies | 2618 Views | Created by AntSalc - Sunday, December 21, 2008 6:49 PM | Last reply by JohnWein - Wednesday, December 24, 2008 1:06 PM -
2 Votes
Thread.Sleep(); Application not responding state.
Then you can replace your sleep with something else external to the function (such as a timer, etc.) and when the timer ticks, you resume one step of iteration.Answered | 14 Replies | 4254 Views | Created by Tejas Sawant 13 - Thursday, September 3, 2015 11:04 AM | Last reply by Tejas Sawant 13 - Thursday, September 3, 2015 6:15 PM -
0 Votes
Thread.Sleep() in BackgroundWorker DoWork
I don't feel the need for having timer or thread.sleep because you can get the real progress of the operation.Answered | 8 Replies | 3960 Views | Created by JasonHuang8888 - Monday, July 11, 2011 8:22 AM | Last reply by JasonHuang8888 - Thursday, July 14, 2011 1:51 AM -
0 Votes
how Int32 struct is created?
Int32 Rudy =8^D Mark the best replies as answers.Answered | 6 Replies | 3278 Views | Created by simosi - Friday, August 13, 2010 5:43 AM | Last reply by Rudedog2 - Saturday, August 14, 2010 4:57 PM -
0 Votes
Thread.Sleep freezing my program in c#
Thread.Sleep is often used by beginners, but it can be a trap, and legitimate real world uses for it are extremely rare.Answered | 2 Replies | 2737 Views | Created by Visual Studio Programmer 25 - Friday, April 25, 2014 8:29 PM | Last reply by Ante Meridian - Saturday, April 26, 2014 6:23 AM -
2 Votes
Alternative to Thread.Sleep(3000) in Windows Form?
cond) { listBox1.Items.Add("hi there"); // line 1 Thread.Sleep(3000); // line 2 ...Answered | 13 Replies | 34811 Views | Created by genyue - Thursday, September 4, 2008 1:43 PM | Last reply by verner002 - Sunday, June 9, 2019 6:28 PM -
0 Votes
Int16 and Int32
The Int16 (or short) only takes up 16 bytes of memory while the Int32 (or int) takes up 32 bytes of memory.Answered | 5 Replies | 35102 Views | Created by SNK08 - Saturday, April 4, 2009 1:30 PM | Last reply by NET Junkie - Sunday, April 5, 2009 10:39 PM -
7 Votes
Thread.Sleep in Win8
Where did the Thread.Sleep method go?Answered | 8 Replies | 13520 Views | Created by Mary Ellen Chaffin - Tuesday, September 20, 2011 10:46 PM | Last reply by PaulES - Saturday, May 19, 2012 7:49 PM -
2 Votes
What's the difference between Thread.Sleep(0) and Thread,Yield()?
Thread.Yield() has a boolean return value which indicates that whether there were any threads who has received time-slice or not, but Thread.Sleep() has not return value.Answered | 4 Replies | 43471 Views | Created by Doraemon_3 - Monday, August 6, 2012 9:47 AM | Last reply by Mansoor Omrani - Monday, August 6, 2012 3:41 PM -
0 Votes
Background Worker and Thread.Sleep
If you are not willing to post a sample explaining how to use AutoResetEvent to make a background worker sleep for 30 seconds then awaken and do some work and sleep again then maybe ...Answered | 6 Replies | 5155 Views | Created by dgrm44 - Friday, April 27, 2012 5:57 PM | Last reply by dgrm44 - Friday, April 27, 2012 11:33 PM -
3 Votes
Thread.sleep(4) milliseconds is not working
Hi, Unless there is some discrepency in the way how you are evaluating this difference, otherwise I have checked that there is no way that sleep method will have anomaly.Answered | 3 Replies | 1454 Views | Created by Avatar 123 - Wednesday, October 9, 2013 6:02 AM | Last reply by Ravi kumar Kantipudi - Wednesday, October 9, 2013 9:38 AM -
3 Votes
C#: try/catch for Thread.Sleep
I don't really see how this: Thread.Sleep(3000); Is possibly going to give an error you're not going to see the first time you spin it ...Answered | 6 Replies | 1910 Views | Created by ARZARE - Monday, December 21, 2015 2:06 PM | Last reply by Matthew LEAN . D - Wednesday, December 23, 2015 11:18 AM -
1 Votes
int and Int32
Int32, float -> Single, char -> Char.Answered | 6 Replies | 1450 Views | Created by Ankit Thapliyal - Tuesday, August 6, 2013 9:58 AM | Last reply by Shailendra Damodare - Tuesday, August 6, 2013 12:19 PM -
0 Votes
thread.sleep() unresponsive UI
Hello, Here is my code void someFunction() { //bla ...Answered | 2 Replies | 3313 Views | Created by Watashi_me - Tuesday, December 22, 2009 1:42 AM | Last reply by Ajith R Nair - Tuesday, December 22, 2009 6:32 AM -
1 Votes
Alternative to Thread.Sleep in catch?
If you want to run some code every 10 seconds you should definitely use a Timer and definitely not Thread.Sleep since this just blocks the thread for no real reason.Answered | 8 Replies | 923 Views | Created by SnowTauren - Thursday, February 12, 2015 3:15 AM | Last reply by Ammar.Zaied - Friday, February 13, 2015 10:10 AM -
6 Votes
How to keep GUI responsive during Thread.Sleep called by another Thread?
The Thread.Sleep is called only inside the "measurement" thread and so are the long processing comands.Answered | 7 Replies | 8025 Views | Created by schwabe111 - Monday, April 9, 2012 7:41 PM | Last reply by schwabe111 - Tuesday, April 10, 2012 5:37 PM -
2 Votes
Waiting without using thread.sleep or timers
I have to wait a small amount of time in between clicks, and I am trying to use thread.sleep for this.Answered | 5 Replies | 5411 Views | Created by Zemus - Wednesday, March 21, 2012 4:51 AM | Last reply by Louis.fr - Monday, March 26, 2012 3:59 PM -
0 Votes
long Thread.Sleep causes thread to exit
Basically by calling Thread.Sleep(), you are allowing the runtime to switch the control to some other thread (in this case, UI thread).Answered | 10 Replies | 4719 Views | Created by shah_yash - Saturday, October 2, 2010 9:07 PM | Last reply by shah_yash - Wednesday, October 6, 2010 2:42 PM - Items 1 to 20 of 2321941 Next ›
No announcements