[Mono-list] Isolating exceptions between AppDomains

Chris Howie cdhowie at gmail.com
Thu Oct 23 03:29:21 EDT 2008


On Wed, Oct 22, 2008 at 1:41 PM, paszczi <paszczi at go2.pl> 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.

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers


More information about the Mono-list mailing list