It is the responsibility of the server to call AddRef() after QueryInterface() or CreateInstance() call. In simple words server calls this function before giving the instance to client. Client never calls this function as management of reference count is a duty of server. There is another reason why it is not called by client. It may happen that client may intentionally or unintentionally call this which creates mess in the server object management. Client is only responsible for releasing the object by Release() call. AddRef() is always called inside COM server.

About our authors: Team EQA

You have viewed 1 page out of 67. Your COM/DCOM learning is 0.00% complete. Login to check your learning progress.

#