InterviewQueries.com


COM DCOM COM DCOM Interview Questions, Learn by sharing COM DCOM Interview Questions asked in various Companies, Get Career advices, Interview Procedures from COM DCOM experts, Post asked COM DCOM Interview Questions and Answers.

   

What are the purposes of AddRef, Release

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-07-2008, 07:38 PM
Senior Member
 
Join Date: Feb 2008
Posts: 1,210
Default What are the purposes of AddRef, Release

What are the purposes of AddRef, Release and QueryInterface functions ?


Reply With Quote
Sponsored Links
http://fresherforums.com/banners/bjsscholarship_728x90.jpg
  #2 (permalink)  
Old 07-27-2009, 02:46 PM
Junior Member
 
Join Date: Jul 2009
Posts: 1
Default

Add Ref : Increment the counter (Interlocked Increment) when the component initialized.

Release : Decrement the counter when the component destroyed.


Reply With Quote
  #3 (permalink)  
Old 01-15-2010, 04:40 AM
Junior Member
 
Join Date: Jan 2010
Posts: 4
Default Hi

Addref and release ref is done to control the de-initlaization of COM dll
com dll interface can be used in many places .But Co-Unitialize should be done only when all the clients are done and released the interface. this is achieved by tracking the interace usage count.


Reply With Quote
Reply

Tags
com dcom, programming language, software, vc++

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT. The time now is 08:36 PM.