AppDomain isolation when having multiple AppDomain - How?

J

José Joye

I'm currently trying to load an instance of a given class within a secondary
appDomain and access it from within my main AppDomain.
Everything is fine and working if the class in the second AppDomain catches
any potential exception.
However, if I throw an error within a method that is implemented in the
object running in the 2nd AppDomain, this really gets bad!!!

I have tried to register to several events:
- AppDomain.UnhandledException in my secondary AppDomain
- in my primary AppDomain, I have registered to the AD2.UnhandledException
// where AD2 is a reference to 2nd AppDomain

when an error is thrown and uncatched in 2nd domain, none of the defined
events are fired and the main application is somehow lost (it does not
terminate).


Can someone tell me how a primary domain can be informed about problem
within Domains it created so as to be able to reload them.
By the way, I'm using .Net 2.0


Thanks a lot,
José
 
J

José Joye

Please discard this thread.
In fact, I had a problem in my logic and it works as expected...

- José
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top