Do COM keep track of all the object references(Accounting)?

Answer Posted / naviyr

Object references in COM is accounted using two methods of
IUnknown Interface (AddRef and Release).

AddRef: Increments a reference count whereas "Release"
decrements the count.
When the count of the reference is zero the DLL is unloaded
from memory.

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does .net replace com?

555


Explain Futures of COM?

574


Can I use .net components from com programs?

602


Can you explain what is dcom?

539


What is the use of com component in .net?

589






What is dcom?

533


What is reference counting in com?

547


Is dcom dead?

617


Once I have developed the com wrapper do I have to still register the com in registry?

652


What is the difference between aggregated and contained objects?

563


Suppose we have object b and aggregated object c (in- proc server), created by b. Can you access any interface of b from c? What?s the difference between aggregated and contained objects?

501


How do we create dcom object in vb6?

688


What are queued components?

582


Suppose we have object B and aggregated object C (in- proc server), created by B. Can you access any interface of B from C?

580


how to call a dll as a COM dll?

710