After reading about threading a little I came across a term, the UI thread. What is the UI thread?
The UI Thread
Started by
Guest_NeedHelp_*
, Jul 11 2006 08:12 AM
1 reply to this topic
#1
Guest_NeedHelp_*
Posted 11 July 2006 - 08:12 AM
Guest_NeedHelp_*
|
|
|
#2
Posted 12 July 2006 - 06:47 PM
The only thread in a Winform app that is allowed to access UI controls. Some murky mojo about the Windows message pump not liking cross thread accesses. VS2005 will warn you about it under the debugger, VS2003 would just let weird stuff like lockups happen because you forgot to Invoke on the UI thread.
All Controls have a InvokeRequired property that you can check to see if your on the UI thread or not. If not, then you need to call Control.Invoke() to get your code moved over to the UI thread or Bad Things Will Hapen .
All Controls have a InvokeRequired property that you can check to see if your on the UI thread or not. If not, then you need to call Control.Invoke() to get your code moved over to the UI thread or Bad Things Will Hapen .


Sign In
Create Account

Back to top










