[Mono-list] Isolating exceptions between AppDomains

paszczi paszczi at go2.pl
Thu Oct 23 11:27:51 EDT 2008


> On Wed, Oct 22, 2008 at 1:41 PM, paszczi  wrote:
> > I'm trying to build some software that uses plugins. The basic requirements is that when one plugins crashes (throws some exception), the whole system should recover from the error. So my first approach was to create AppDomain for each plugin and let it run there. However when plugins throws exception it goes back to default AppDomain and, as a result, crashes whole application. Is there any way to workaround this?
> 
> Use a try block.

OK, maybe I didn't clarify. Each plugins starts its own processing thread. So when the child thread throws exception there is no way to catch it in try-catch


More information about the Mono-list mailing list