Whenever I refresh a label, I got this error: The calling thread cannot access this object because a different thread owns it. I tried to invoke b
Several suggestions to use BeginInvoke, but no mention of EndInvoke. Good Practice is that 'every BeginInvoke has a matching EndInvoke' and certainly there needs to be some safeguard against race conditions (Think: what happens with multiple BeginInvoke of code but none have finished processing yet?)
It's easy to forget, and I've seen this error (and, yes, it is an error) in both MSDN examples and published books on WinForms