Solved

how microsoft .net load dll into memory

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

803 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