Solved

how microsoft .net load dll into memory

Posted on 2009-05-11
3
523 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 500 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

688 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