Do Control Messages Report .Invoke?

Does Control.Invoke () continue to pump messages in the thread from which it was called from the lock? (System.Windows.Forms)

+2
source share
2 answers

Not. Invoke blocks β€” the entire thread blocks until an Invoke call is called.

There is also a BeginInvoke that does not block.

+4
source

Not. This requires the user interface thread to do the pumping. If this is not the case, Invoke () will not be completed. A classic source of deadlock by the way. Diagnose with Debug + Windows + Threads, check the call stack of the main thread.

+3
source

All Articles