Before a type in an assembly can be loaded, that assembly must be referenced
by another assembly (unless we are talking about the primary assembly).
Assemblies that are referenced are loaded into memory as the primary
assembly is loaded.
> Hi,
>
[quoted text clipped - 5 lines]
> Regards,
> Cris
cris - 15 Dec 2004 03:33 GMT
Thanks Scott.
My concern however is resource consumption. If the assembly
image is 100KB, and I only need to instantiate one Type in
the assembly (via Reflection), will a whole 100KB chunk of
memory get allocated?
Is there any way to optimize resource consumption in this
scenario?
Regards,
Cris
> Before a type in an assembly can be loaded, that assembly must be referenced
> by another assembly (unless we are talking about the primary assembly).
[quoted text clipped - 10 lines]
> > Regards,
> > Cris
Mattias Sj?gren - 15 Dec 2004 07:01 GMT
Scott,
>Assemblies that are referenced are loaded into memory as the primary
>assembly is loaded.
No, they aren't loaded until they are actually used.
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.