Re: Assembly loaded by a static (shared) function
Tech-Archive recommends: Fix windows errors by optimizing your registry
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Wed, 1 Jun 2005 06:39:55 +0100
Bagger <Bagger@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> As I understand it, the only way to unload an assembly from memory is to load
> it in a separate appdomain and then unload that appdomain. However, I'm not
> sure about this situation. Here's the question: If an assembly is loaded by
> a static (shared) function, and no reference is maintained after that
> function returns, does the assembly remain in memory? Just trying to get
> this sorted out. Thanks!
Yes, the assembly remains loaded. It *only* gets released when the
AppDomain is unloaded.
--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
.
Relevant Pages
- Re: Threads in AppDomain (Ingo please help ;-))
... I am already doing the very same thing, where I monitor all threads, ... being returned out of AppDomain, which is something I have to do. ... and the unload it as they go away. ... > Keep track of all the threads that you create, in a suitable collection. ... (microsoft.public.dotnet.framework.remoting) - Re: AppDomains and Exceptions
... Sorry, but .NET 2.0 CLR design is that the most of exeptions leads to appdomain unloading, albeit UnhandledException and ThreadAbortException are being notified. ... You can't unload specific assembly. ... r> of these DLL's throws an exception, I do not want the exception to ... (microsoft.public.dotnet.distributed_apps) - Re: Thank you and goodbye Mr Peter Morris
... that there are no outstanding pointers to that code. ... they can be marshalled automatically across appdomain boundaries, ... created in the context of the app domain. ... If I want/need to unload an assembly, I need to unload the entire app ... (borland.public.delphi.non-technical) - Re: appdomain.unload
... are you calling load to load the assembly into ... AppDomain", Nothing, setup) ... Dim closing_exception As Exception ... ErrorLog.Log(head + "trying to unload appdomain, ... (microsoft.public.dotnet.framework) - Re: appdomain.unload
... AppDomain", Nothing, setup) ... Dim closing_exception As Exception ... ErrorLog.Log(head + "trying to unload appdomain, ... (microsoft.public.dotnet.framework) |
|