[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 551
  • Last Modified:

how microsoft .net load dll into memory

The question is how microsoft.net load dll or assembly into memory.
Is it like whenever that dll is required .net loads that dll or it load all the dll in one go and then it remain in memory.
0
DCPanda
Asked:
DCPanda
  • 2
1 Solution
 
JackOfPHCommented:
Here this is an article from Microsoft.

http://msdn.microsoft.com/en-us/library/0xy59wtx.aspx

0
 
abelCommented:
If you link 20 dlls to your project and you use only 1, only that one will be loaded.

The footprint in memory is dependent on the static (shared in VB) methods and classes and whether the dll has initialization code (i.e. a static constructor of a class) that must run before any objects are instantiated. But that only happens if the belonging class is referenced and/or instantiated.
0
 
abelCommented:
If you rate the next time, please make sure to have read the 10pts must principle. In short, follow-up and stay engaged and give the expert the chance to help you and earn his A-grade.
0

Featured Post

Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now