> 
> Pouf, g_obj2 is a dead dodo, and next time someone tries to use it, it's an 
> error.

As long as handles are never re-used in your plugin.  I don't know how it 
generates handles.

> 
> Which of course applied to any plugin that generates handles.  Probably 
> should add a health warning to docs for all that do about that.
>

True enough, but one advantage of reference counting was that this problem 
disappears, and the scripter does not have to worry any more about managing 
memory or dangling "pointers".  If you allow explicit releases, then that 
advantage disappears.

Now ref counting can fail in some cases, eg objects that reference each other, 
but I think in those cases you just lose some memory.  They don't seem too 
likely to occur anyway in PowerPro scripting.

Reply via email to