Assembly unload

  • Thread starter Thread starter Soren Jorgensen
  • Start date Start date
S

Soren Jorgensen

Hi,

Is it possible to unload a dynamicly loaded assembly (loaded with
Assembly.LoadFrom) ?

Soren
 
No, you have to unload the AppDomain. Even unloading the AppDomain
won't work if the assembly is domain neutral or if you've leaked references
from the second AppDomain into the default AppDomain.
 
No, once if it loaded into AppDomain it is there until the AppDomain is
unloaded.
If you start using a new AppDomain watch for communication across two
domains.

You can inspect a dynamically loaded assembly, for example if you wanted
only to check the version of a DLL, you can do this without loading it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top