Assembly(dll) Load Memory Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi everyone,
Lets suppose I'v a class lib mylib.dll which is about 3mb in size. Now if I refernce it from a windows forms app which uses mylib.dll, will all the 3mb be loaded into memory as soon as my app starts using it? Or will the mylib.dll get loaded part by part as its different objects are invoked?

Regards,

Abubakar.
 
Hi Abubakar.
Assemblies loaded to memory as a one bulk so you can't load just part of
an assembly " you can choose to implement multiple assemblies however.
myLib.dll is one assembly , it will all be loaded once a reference to it
is made . what you can do , it to divide the functionality of that
assembly into multiple. Or, if this big size is due to resources " as
images or sound files" you can make use of the satellite assembly feature
provided by .net and build there resources in satellite assembles that
would only be loaded when about to be used ones hope that helps .

Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top