No announcements
Found 313463 threads
-
0 Votes
Thread.Sleep inside Dispatcher.BeginInvoke ?
Dispatcher.BeginInvoke queues your work to run on the UI Thread when it can.Answered | 1 Replies | 3924 Views | Created by zoran123456 - Tuesday, August 25, 2009 3:35 AM | Last reply by Flexman - Tuesday, August 25, 2009 3:54 AM -
0 Votes
Use of Dispatcher.BeginInvoke and lock
/// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : Window { private object m_lockObject = new object(); public ...Answered | 2 Replies | 10659 Views | Created by Paulustrious - Sunday, June 12, 2011 3:22 PM | Last reply by Min Zhu - Tuesday, June 14, 2011 9:08 AM -
0 Votes
Dispatcher.BeginInvoke and application freeze
I've made a test and it looks like that I'm not able to modify any WPF controls after the call to Dispatcher.Begininvoke until the method has finished to load....Answered | 13 Replies | 23145 Views | Created by Thomas LEBRUN - Friday, July 14, 2006 5:46 PM | Last reply by HotChocSciFi - Sunday, January 3, 2010 5:58 PM -
2 Votes
Thread.sleep question
Do you think that's caused by the thread.sleep(1) ?Answered | 19 Replies | 2830 Views | Created by aujong - Thursday, January 5, 2012 5:17 PM | Last reply by Mark Liu-lxf - Monday, January 9, 2012 3:23 AM -
11 Votes
Dispatcher.BeginInvoke using lambda?
{lb.SelectedIndex = 0; lb.Focus();} ));Answered | 5 Replies | 54838 Views | Created by emanon - Wednesday, May 7, 2008 1:35 PM | Last reply by DanielRose - Thursday, November 5, 2009 3:32 PM -
5 Votes
How to replace Thread.Sleep(Int32)
I use Thread.Sleep() TO HELP me debug my code.Answered | 16 Replies | 33594 Views | Created by okh2 - Sunday, October 9, 2011 2:16 PM | Last reply by Randy Dodson - Tuesday, April 2, 2013 2:54 PM -
1 Votes
await Dispatcher.BeginInvoke exceptions
>The await on Dispatcher.BeginInvoke does not seem to report exceptions:<Answered | 11 Replies | 4690 Views | Created by Jan Kučera - Tuesday, March 4, 2014 4:53 PM | Last reply by Jan Kučera - Friday, March 7, 2014 12:01 AM -
1 Votes
Why use dispatcher.begininvoke in windows phone
Dispatcher.BeginInvoke calls the passed delegate on the dispatcher thread.Answered | 1 Replies | 382 Views | Created by CRRama - Monday, December 1, 2014 2:30 PM | Last reply by Rob Caplan [MSFT] - Monday, December 1, 2014 2:57 PM -
7 Votes
Thread.Sleep in Win8
Per Matt's suggestion, if you decide to go the Task route, inside of an async method in C# or Visual Basic, you can use await on a Task.Delay task to asynchronously wait for a period of time.Answered | 8 Replies | 13448 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
Default priority for Dispatcher.BeginInvoke
When I call Dispatcher.BeginInvoke with no DispatcherPriority value (there's an override for that), what is the default priority that is used here?Answered | 2 Replies | 9583 Views | Created by LonelyPixel - Tuesday, September 18, 2012 10:51 AM | Last reply by LonelyPixel - Tuesday, September 18, 2012 11:11 AM -
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 | 3892 Views | Created by JasonHuang8888 - Monday, July 11, 2011 8:22 AM | Last reply by JasonHuang8888 - Thursday, July 14, 2011 1:51 AM -
2 Votes
Alternative to Thread.Sleep(3000) in Windows Form?
Use: Application.DoEvents(); Thread.Sleep([TIME]);Answered | 13 Replies | 34311 Views | Created by genyue - Thursday, September 4, 2008 1:43 PM | Last reply by verner002 - Sunday, June 9, 2019 6:28 PM -
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 up to ...Answered | 6 Replies | 1730 Views | Created by ARZARE - Monday, December 21, 2015 2:06 PM | Last reply by Matthew LEAN . D - Wednesday, December 23, 2015 11:18 AM -
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 | 2612 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
Thread.Sleep(); Application not responding state.
You should not be using Thread.Sleep.Answered | 14 Replies | 4074 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 -
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 | 42852 Views | Created by Doraemon_3 - Monday, August 6, 2012 9:47 AM | Last reply by Mansoor Omrani - Monday, August 6, 2012 3:41 PM -
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 | 812 Views | Created by SnowTauren - Thursday, February 12, 2015 3:15 AM | Last reply by Ammar.Zaied - Friday, February 13, 2015 10:10 AM -
0 Votes
thread.sleep() unresponsive UI
Hello, Here is my code void someFunction() { //bla ...Answered | 2 Replies | 3243 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 -
0 Votes
Background Worker and Thread.Sleep
bw.CancellationPending ) { Thread.Sleep( 30000 ); } if ( bw.CancellationPending ) { e.Cancel = true; ...Answered | 6 Replies | 4952 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 i need to make thread to sleep for 4 milli seconds thread.sleep(4) is not working in windows 2008 R2 64 bit opearting system with 4GB RAM (it was ...Answered | 3 Replies | 1360 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 - Items 1 to 20 of 313463 Next ›
No announcements