I have some questions about assembly architecture

  • Thread starter Thread starter fairycat
  • Start date Start date
F

fairycat

Now I reference serveral sub project dlls from my main program. After I
executed my main program I did check memory on device with process
manager and there was no dll that I referenced. But there were unmanged
dlls that I dynamically loaded. Does this mean .NetCF don't use memory
to load assembly?? Why I cannot see my assemblys on memory? this is my
first question.

Second. I've already read all the threads about assembly on this
newsgroup so now I know that there are no function like
assembly.unload(). So, basically we don't unload assembly once we've
loaded them. Then why there's an attempts to do dynamic assembly
loading(PLUG-IN)?? I just don't get it.

Any comments will be appreciated.
Thanks in advance.

- Aaron
 
Managed dlls do not appear in the modules list of process viewer. That does
not mean they are not loaded. When you use a type from a dll, the dll is
loaded.

It is true that you cannot unload assemblies with .NET (CF 2.0 allows you to
unload appdomains). That does not hinder writing plugins. You can still
write plug ins and have the assemblies loaded at runtime (you just cannot
unload them).

Cheers
Daniel
 
Back
Top