all groups > dotnet clr > august 2007 >
You're in the

dotnet clr

group:

Mutliple calls to Assembly.Load()


Mutliple calls to Assembly.Load() AL
8/15/2007 3:34:00 AM
dotnet clr:
Hi

I was wandering if anyone knows what the effect of calling Assembly.Load()
mutiple times for the same assembly will be in regard to loading the assembly
into the AppDomain.

I know that once it has been loaded, it cannot be unloaded until the
AppDomain is shutdown, however, will calling load cause it to be loaded
multiple times and cause unnecessary memory consumption, or are there no real
issues I need to be concerned with.

Many thanks

Al

--
Re: Mutliple calls to Assembly.Load() Mattias Sjögren
8/15/2007 7:29:33 PM
[quoted text, click to view]

No, the assembly will only be loaded once.


Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
AddThis Social Bookmark Button