Friday, April 25, 2014

Thread.Sleep freezing my program in c#

Mmm, you're probably calling Thread.Sleep from the UI thread, of course the application freezes if the thread sleeps.


Normally you should use a timer instead of a loop + Thread.Sleep.


No comments:

Post a Comment