Unloading Assemblies

  • Thread starter Thread starter Sascha
  • Start date Start date
S

Sascha

Hi,

Does anybody know WHY an assembly can't be unloaded individually?

In Java the Classloader provides this option, i.e. one can unload one
single class. I'm wondering whether Microsoft will provide something
equal at any time. Does anybody has more information on this???

- Thanks
Sascha
 
Sascha,

You'll have to consider this an unofficial answer, since I'm not on the
runtime team.

IIRC, being able to unload a single assembly involved a considerable amount
of extra work in tracking whether the assembly can be unloaded (ie whether
there are any type references to the type anywhere, etc.) This is easier on
an app-domain basis because the types are (usually) contained within the app
domain.

--
Eric Gunnerson

Visit the C# product team at http://www.csharp.net
Eric's blog is at http://weblogs.asp.net/ericgu/

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top