> 
> One more question: Normally when I create a new handle I also return it, and 
> therefore I also call ppsv->ReturningNewHandle.  
> 
> In new code in COM code handling SAFEARRAYS, there's a possibility of a vec 
> element getting assigned to a newly created handle to a com object.  

You should be calling changerefhandle here on the vec, in case someone ever 
implements a version of the vec plugin that uses reference counting.  It's 
probably less than 20 lines of code to do that, but not planning it for now, 
but who knows about the future.

I also return the handle to the newly created vec (so com plugin service is 
returning a vec handle).  Is it appropriate to call
> ppsv->ReturningNewHandle in that case?

No, that would be called in the vec plugin, if vec used reference counting.  
Probabably the plugin service should be called "CreatedNewHandle"
> 
> 
> 
> My guess is it's not appropriate to call it in

Good guess.
>


Reply via email to