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

how to call a dll as a COM dll?

892


What is the difference between aggregated and contained objects?

729


Does .net replace com?

719


What are queued components?

758


How to create an instance of the object in COM?

735


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

834


Which namespace do the classes, allowing you to support COM functionality, are located?

2304


Define and explain about COM?

800


Can you explain what is dcom?

684


Can I use com components from .net programs?

785


Explain Futures of COM?

734


What is dcom?

692


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?

675


How do we create dcom object in vb6?

867


What is reference counting in com?

713