.NET 4.0 and the dreaded OnUserPreferenceChanged Hang
a Control that was constructed off the UI thread… Yes, that is a good way to trigger this problem. The underlying problem is caused by the SystemEvents class, it has the unenviable task of raising its events on the correct thread. The UserPreferenceChanged event is the typical trouble-maker, lots of controls subscribe it so they … Read more