forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


SharedDLLs

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Mon Oct 27, 2003 11:04 am    Post subject: SharedDLLs Reply with quote

Hi,

can somebody explain me the advantage of registering a dll as shared dll ?
Is the dll loaded only once into the memory ?

My application (several vds exe files) needs much ram - i think because of the many dlls I use in each exe.

Thanks for your help

Bye, Fabian
Back to top
View user's profile Send private message Send e-mail Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Mon Oct 27, 2003 6:50 pm    Post subject: Reply with quote

X-Tools wrote:
registering a dll

??
Are U talking about active-X dlls?

I assume regular win32 dlls.
Even if you call multiple instances of the dll, the dll is loaded only once.
Now what happens when U exit one application while others are running. In Case of VDS EXTERNAL dll's - I don't know - but think must be same as other true dlls - decrements the reference count.
When the last app using the dll exits the library is unloaded entirely from memory. Each module (dll) is recognised on it's file name. So if U name the same dll differently on different apps I think memory usage may increase.
Also U may note that only part of the dll is loaded into memory on initialization and then only the parts containing the functions especailly on NT based systems ( I am not using technically correct words but somthing similar).

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Mon Oct 27, 2003 7:03 pm    Post subject: Reply with quote

Hi Codescript,

thanks for your answer.
Several installers (for example innosetup) have the option for registering a dll as shared dll (in the registry). So you say there is no difference for working with a vds dll in my directory and a vds dll registered as shared dll ?


Bye, Fabian
Back to top
View user's profile Send private message Send e-mail Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Mon Oct 27, 2003 7:19 pm    Post subject: Reply with quote

I don't know what the setup does ?
I think shared means it is placing the dll in system directory.
IMHO placing the dll in your app directory/subdirectory is far better to avoid the "dll hell" (dll version conflict problems)

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Mon Oct 27, 2003 8:04 pm    Post subject: Reply with quote

I think the option for registering shared DLLs is purely to do with uninstalling. If you register it as a shared DLL, Windows keeps a count of the number of applications that used it, and if the count decrements to zero, the installer can offer you the option of removing it.
_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group