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

Can I use com components from .net programs?

586


What is the difference between aggregated and contained objects?

555


What is reference counting in com?

542


What is dcom?

529


Is dcom dead?

611






How do we create dcom object in vb6?

677


What are queued components?

575


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

643


how to call a dll as a COM dll?

702


Explain Futures of COM?

568


How to create an instance of the object in COM?

562


Can I use .net components from com programs?

590


What is the use of com component in .net?

580


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?

494


Define and explain about COM?

596