PC Review


Reply
Thread Tools Rate Thread

appDomain Unload

 
 
=?Utf-8?B?UmFpbg==?=
Guest
Posts: n/a
 
      30th Jan 2006
How do we know if the appDomain.unload is working? i've tried deleting the
dll inside a program right after unloading the appdomain but there was a
exception.. SystemUnauthorizedAccess. Thanks!
 
Reply With Quote
 
 
 
 
=?iso-8859-1?Q?Lasse=20V=e5gs=e6ther=20Karlsen?=
Guest
Posts: n/a
 
      30th Jan 2006
> How do we know if the appDomain.unload is working? i've tried deleting
> the dll inside a program right after unloading the appdomain but there
> was a exception.. SystemUnauthorizedAccess. Thanks!
>


Are you sure you didn't manage to pull the assembly into the main appdomain?
When you debug, see if the output window lists the assembly as being loaded
into the main appdomain.

You can also try enumerating the assemblies in the main appdomain after unloading
the separate one and see if the assembly has been loaded there.

This is the most common error I've encountered when I use separate appdomains.

--
Lasse Vågsæther Karlsen
http://usinglvkblog.blogspot.com/
private.php?do=newpm&u=
PGP KeyID: 0x2A42A1C


 
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.Unload()? =?Utf-8?B?SXZhbg==?= Microsoft Dot NET Compact Framework 0 4th Oct 2006 05:38 AM
AppDomain / Object Lifetime & AppDomain.Unload =?Utf-8?B?QXJ0aHVyIE0u?= Microsoft Dot NET Framework 1 12th Jul 2005 08:09 PM
AppDomain and Unload Wal Turner Microsoft C# .NET 6 17th Nov 2004 10:27 AM
AppDomain.Unload Roman Microsoft Dot NET Framework 2 20th May 2004 10:09 AM
unload assembly - AppDomain.Unload does not work as expected =?Utf-8?B?RGllcmsgRHJvdGg=?= Microsoft Dot NET Framework 2 4th Apr 2004 04:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:48 PM.