Thanks for the reply. I understand that I can load/unload the appdomain. The
problem is this: The DLL's that I am loading/unloading are "plug-ins" to our
main app. There could be hundreds of these, and most are third party. Some
create their own threads. If there is an exception in one of their threads,
and they don't handle it, my application gets an UnHandledException event and
my application dies. This obviously is not acceptable. I need to way to
totally isolate these plug-ins. It looks like AppDomains is not going to work
for me?
-Rich
> Hello rjh,
>
[quoted text clipped - 17 lines]
> "At times one remains faithful to a cause only because its opponents do not
> cease to be insipid." (c) Friedrich Nietzsche
Michael Nemtsev - 20 Nov 2006 18:01 GMT
Hello rjh,
Sorry, but .NET 2.0 CLR design is that the most of exeptions leads to appdomain
unloading, albeit UnhandledException and ThreadAbortException are being
notified.
But, u can use legacyUnhandledExceptionPolicy flag of runtime version to
return the 1.1 behaviour
Read more about this there http://msdn2.microsoft.com/en-us/library/ms228965.aspx
http://msdn2.microsoft.com/en-us/library/ms228965.aspx
r> Thanks for the reply. I understand that I can load/unload the
r> appdomain. The problem is this: The DLL's that I am loading/unloading
r> are "plug-ins" to our main app. There could be hundreds of these, and
r> most are third party. Some create their own threads. If there is an
r> exception in one of their threads, and they don't handle it, my
r> application gets an UnHandledException event and my application dies.
r> This obviously is not acceptable. I need to way to totally isolate
r> these plug-ins. It looks like AppDomains is not going to work for me?
r>
r> -Rich
r>
r> "Michael Nemtsev" wrote:
r>
>> Hello rjh,
>>
[quoted text clipped - 18 lines]
>> "At times one remains faithful to a cause only because its opponents
>> do not cease to be insipid." (c) Friedrich Nietzsche
---
WBR,
Michael Nemtsev [C# MVP] :: blog: http://spaces.live.com/laflour
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch