Probably a copy of: Can I prevent an uncaught exception in another AppDomain from shutting down the application?
Been trying all day to figure out the answer to this question.
Just want to make sure that the answer is indeed no, before I throw away all the code Ive made to isolate my drivers inside their separate appdomains and replace it with old-school processes.
So the formal question is this.
Having a default domain "ad-default", in which I create a new appdomain "ad-hosted", can I avoid that unhandled exceptions from "ad-hosted" tears down "ad-default"?
I am aware that I can observe the exceptions by hooking up to the UnhandledException event of the "ad-hosted" domain, but I can find no way to stop them from propogating to the "ad-default" domain.
Is this really true? But why would we even want AppDomain's, if they do not provide isolation?
EDIT: The answer is unfortunately NO, see this answer for explanation: AppDomain, handling the exceptions