473,402 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Assembly(dll) Load Memory Question

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.

Nov 16 '05 #1
1 1623
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

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Derick Smith | last post by:
Hi! I am just starting to use .NET and need some help! If I create my own DLL for String resouces using this command: C:\WINNT\MICROS~1.NET\Framework\v1.1.4322\Al /t:lib...
2
by: Lee Alexander | last post by:
Why does Assembly.Load allow this: Assembly.Load( "mscorlib" ); if you try the following it fails as expected: Assembly.Load( "System" ); Since it should be (for framework 1.1):...
1
by: Ram | last post by:
Hey, I have a windows application that uses Assembly.Load to get information on certain Assemblies. But the problem is, that after the Load, even after I clean the object (set it to null), I...
1
by: mathlec | last post by:
I'm struggling with an odd problem and I want to validate something. What is the right way to load an assembly from bytes? Is this code correct? : .... Private Function loadBytes(filename...
2
by: Ram | last post by:
Hey, I have a windows application that uses Assembly.Load to get information on certain Assemblies. But the problem is, that after the Load, even after I clean the object (set it to null), I...
5
by: iamcs1983 | last post by:
Can I load a assembly from memory by Assembly.Load(string) ?
6
by: Steve | last post by:
I'm playing with late binding and trying a very simple test to load an assembly In my "Host" application I have this code: <code> string modulePath =...
0
by: Tony Johansson | last post by:
Hello! Some background so you can better understand my question. I have several windows form within a project. A have also other projects which are user defined class libraries and user defined...
3
by: Peter | last post by:
Hi I can create types from dynamic loaaded assemblies (Assembly.Load) with Assembly.GetTyp( <typename) - OK I need a reference to the assembly (just Type.GetType() do not work ) now my...
2
by: Tony Johansson | last post by:
Hello! If I can add an assembly dll to the GAC by using gacutil -i assembly-dll-file is it then as an alternative possible to drag the assembly dll file to the GAC folder ? //Tony
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.