WPF exception handling when launched from WinForms

Posted by Sonic Soul on Stack Overflow See other posts from Stack Overflow or by Sonic Soul
Published on 2010-06-01T20:02:53Z Indexed on 2010/06/01 20:43 UTC
Read the original article Hit count: 336

Filed under:
|

so i came across this interesting article on WPF exception handling: http://srtsolutions.com/public/item/251263

it works by declaring DispatcherUnhandledException handler in xaml <application> node.

but what if a WPF window is launched from win forms application?

where can i declare a general exception handler?

The problem is that when WPF crashes, it brings down the whole WinForms app with it.

*Edit what if instead of launching the WPF window directly, i launched an "Application" which than defined a start window?? is that possible/advisable?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about winforms