Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

DLLs and Memory

Posted on 2002-05-22
3
Medium Priority
?
266 Views
Last Modified: 2010-04-15
I am curious as to how DLLs work in memory most specifically whether the whole DLL is loaded into memory when a single function is called (or class instantiated).

I am mostly interested in terms of COM objects.

Basically can someone tell me what the performance/memory differences are in calling a class in a DLL that contains many other classes as opposed to calling a dll that has a single class?

0
Comment
Question by:JustinB
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
makerp earned 150 total points
ID: 7041703
yes, when you use a dll even if only one function is used then the whole dll is loaded. if this is the case for you you may be better linking staticaly to the dll (only possible if you have a .lib that is a static equavilent)

dlls should only be used if more than one program can use what they have otherwise it aint worth it. obviosly the more classes in a dll the bigger the dll, the more memory it will use and the longer it will take to load
0
 
LVL 1

Author Comment

by:JustinB
ID: 7041794
Thats what I thought, thanks.
0
 
LVL 10

Expert Comment

by:makerp
ID: 7041813
glad to be of help
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.

782 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