access the user interface from multiple threads

Avoiding InvokeRequired By Pablo Grisafi, 28 Jun 2012 Using Windows.Forms gets really ugly when you need to access the user interface from multiple threads. IMHO, this is an example of leaky abstraction. When you run a program with this UI threading issue from within Visual Studio, it will always throw an exception. The same program running as […]

By 28 Jun 2012

Using Windows.Forms gets really ugly when you need to access the user interface from multiple threads. IMHO, this is an example of leaky abstraction.

When you run a program with this UI threading issue from within Visual Studio, it will always throw an exception. The same program running as a standalone EXE may not throw the exception. That is to say, the development environment is stricter than the .NET framework.