Does anyone know the difference, in practical terms, between
Thread.Sleep (10000) and Thread.CurrentT hread.Join (10000)??
The MSDN says that with Join, standard COM and SendMessage pumping
continues, but what does this mean in practice for a typical Windows
Forms or Windows Service application??
Some people say you should always use the latter.
But if you put either of these commands into simple Windows Forms app -
eg on a button event handler - the application becomes unresponsive for
10 seconds. So what's the difference (if any?)
Thanks
Joe
Thread.Sleep (10000) and Thread.CurrentT hread.Join (10000)??
The MSDN says that with Join, standard COM and SendMessage pumping
continues, but what does this mean in practice for a typical Windows
Forms or Windows Service application??
Some people say you should always use the latter.
But if you put either of these commands into simple Windows Forms app -
eg on a button event handler - the application becomes unresponsive for
10 seconds. So what's the difference (if any?)
Thanks
Joe
Comment