I have a single-threaded IronPython WPF application and if an event handler (FrameworkElement.SizeChanged
for example) throws, the exception is just eaten and execution continues without any kind of notification.
Because of this I spent a lot of time today solving an "impossible" bug.
Does the same thing happen when using WPF from C#? What happens there if SizeChanged
throws?
And is there a way to globally catch exceptions thrown by event handlers, but which don't terminate the application?