Please discard this thread.
In fact, I had a problem in my logic and it works as expected...
- José
"José Joye" <(E-Mail Removed)> a écrit dans le message de news:
466feade$0$3825$(E-Mail Removed)...
> 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é
>
>
|