--- In [email protected], "brucexs" <bruc...@...> wrote:
>
> 
> > I can imagine times when scripter would want to let go of a com resource 
> > before end of script.  I suppose could do that by
> obj = ""

I should have mentioned that this will work now out of the box, assuming obj 
hold the only reference to a com object.

The variable assignment stuff in PowerPro gets used (since "" is not a handle), 
but it calls changerefhandle, which sees that obj has a release call back, and 
so that will get called.  You can then free the object.

I also wanted to draw attention to the fact that you should create new objects 
with a reference count of zero in case they are never assigned.  It is when 
they are assigned that you get called to increment ref count.  Or if they are 
just temps that are not assigned, you get refcallback(...,0) to delete them.



Reply via email to