PC Review


Reply
Thread Tools Rate Thread

AppDomain isolation when having multiple AppDomain - How?

 
 
José Joye
Guest
Posts: n/a
 
      13th Jun 2007
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é


 
Reply With Quote
 
 
 
 
José Joye
Guest
Posts: n/a
 
      13th Jun 2007
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é
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AppDomain isolation when having multiple AppDomain - How? José Joye Microsoft C# .NET 1 13th Jun 2007 09:30 PM
HELP: how to find list of AppDomain under main process appdomain Hank Microsoft Dot NET Framework 1 17th Sep 2005 05:55 AM
Code isolation with the AppDomain class Jon Shemitz Microsoft Dot NET Framework 2 17th Apr 2005 09:49 PM
Repost: Isolation In AppDomain - How to prevent the main AppDomain to crash when another AppDomain Crashes?????? José Joye Microsoft C# .NET 7 6th Nov 2003 03:10 PM
Repost: Isolation In AppDomain - How to prevent the main AppDomain to crash when another AppDomain Crashes?????? José Joye Microsoft Dot NET 7 6th Nov 2003 03:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:46 PM.