Re: Multithreading and applicantion hangs
- From: "Brian Gideon" <briangideon@xxxxxxxxx>
- Date: 8 Mar 2006 09:38:15 -0800
Typo. It should be Control.InvokeRequired. We knew what you meant
though :)
Stoitcho Goutsev (100) wrote:
Don't ever call control methods and set properties from a thread different
than the one created the control. Of course there some that are safe to be
called, but as a rule of thumb don't do that. When you want to access
control form worker thread use Control.Invoke to marshal the code. In order
to find out where is ssafe to call a method or set a property you can use
Control's IsInvoleRequired property.
For more info:
http://msdn2.microsoft.com/en-us/library/ms171728.aspx
--
HTH
Stoitcho Goutsev (100)
.
- References:
- Multithreading and applicantion hangs
- From: prateekbaxi
- Multithreading and applicantion hangs
- Prev by Date: Making image colors transparent
- Next by Date: Re: Crystal Reports
- Previous by thread: Re: Multithreading and applicantion hangs
- Next by thread: Re: Multithreading and applicantion hangs
- Index(es):
Relevant Pages
|