In my solution, my main project is a WPF c# project. Within the solution, there is a legacy project that I needed to integrate that is a VB winforms project. This was done via a wrapper class in the WPF project that manipulates some public objects from my legacy project.
In my WPF project, I have implemented Application_DispatcherUnhandledException in order to have exceptions bubble up to here, where I log them in our database for debugging.
The problem that I have is that whenever something from the legacy project crashes (such as a NullReferenceException), the code never reaches our implementation of Application_DispatcherUnhandledException which is in the main WPF project.
Is is possible to redirect all unhandled exceptions from the WinForms project to the WPF one?