?
Solved

how microsoft .net load dll into memory

Posted on 2009-05-11
3
Medium Priority
?
528 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 15

Expert Comment

by:JackOfPH
ID: 24352249
Here this is an article from Microsoft.

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

0
 
LVL 39

Accepted Solution

by:
abel earned 1500 total points
ID: 24352283
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
ID: 24393335
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

Stack Overflow Podcast - Developer Story

Welcome to the Stack Overflow podcast recorded Thursday July 20 at Stack Overflow Headquearters in NYC. Your hosts today are podcast regulars Jay Hanlon, David Fullerton, and Ilana Yitzhaki, plus the quite irregular Matt Sherman (Stack Overflow Engineering Manager extraordinaire)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

762 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