I want to modify or just load a .NET executable and then handle its unhandled exceptions. My goal is to make a smart handler which can send the stack traces.
Assuming that the other executable is a .NET application, load it into a new AppDomain
and run it there. When the target executable throws an exception, you get AppDomain.FirstChanceException Event
.
Could you load an assembly into a seperate app domain and then subscribe to the unhandled exceptions of that app domain?
i.e. something like this
Can Unhandled Exceptions in Child AppDomains be prevented from crashing the main process?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With