Solved

how microsoft .net load dll into memory

Posted on 2009-05-11
3
503 Views
Last Modified: 2012-05-06
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
Comment
Question by:DCPanda
  • 2
3 Comments
 
LVL 15

Expert Comment

by:JackOfPH
Comment Utility
Here this is an article from Microsoft.

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

0
 
LVL 39

Accepted Solution

by:
abel earned 500 total points
Comment Utility
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
 
LVL 39

Expert Comment

by:abel
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now