How a dll will be sharable by more than one exe?

Answer Posted / d.v.rama krishna

If a dll is Sharable, all the functions are set in global
data segment, when ever a exe is called the SCM (Service
control Manager ) will increment reference count by 1, if
the second exe is called the same dll, SCM will increment
by 2, if first exe is unloaded or terminatred it decrements
the count by 1.

And finally if reference count is 0, the dll will unloaded
from the memory.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the significance of initapplication() in vc++.

661


What is a thread (VC++) and state the difference between Cmutex and Csemaphone?

618


Difference between getmessage, postmessage & peakmessage.

613


Explain some of commonly used methods provided by iunknown.

517


Can I uninstall visual c++ 2005?

575






Where can I find microsoft visual c++ on my computer?

603


What is microsoft visual c++ 2013 redistributable package x64?

552


How do I create an mfc application in vc++?

620


Is microsoft visual c++ important?

639


What is microsoft visual c++ 2008 redistributable?

589


What is splitter window in vc++?

714


Difference between critical section, mutex and semaphore.

636


How do I change visual code font?

597


What is microsoft visual c++ redistributable and do I need it?

546


How you build a project using Developer Studio?

1761