Bugzilla – Bug 530976
Improved use of Control.Invoke and related exception handling available in Mono 2.6?
Last modified: 2009-08-13 18:17:26 UTC
Historically in UIAutomationWinforms, for example, we frequently invoke methods on Controls in their UI thread using *Invoke methods. A problem with this has been that in Mono, exceptions did not propagate to us correctly, and we were unable to handle them. With the recent fix for bug #497175, we may now have an opportunity to correct this. Tasks for this bug: 1) Investigate if the fix for bug #497175 has caused any changes (good or bad) in the behavior of UIAutomationWinforms. Do this by running unit tests, strongwind tests, and performing some manual testing. Address any new problems found. 2) Investigate if the fix for bug #497175 allows us to use Invoke instead of always using BeginInvoke (or alternatively, we could use BeginInvoke+EndInvoke). 3) Investigate if we can improve handling of exceptions originating from MWF by switching to Invoke or Begin+End.