--- In [email protected], "entropyreduction" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> What do you think of automatically releasing any handle stored in a
> vector/map element (handle to a vec, map, dll struct, whatever) when
> said vector or map is destroyed?  Or at least when it's local and
> destroyed?  Maybe exclude anything that's been localcopied?
>
Yes, this is an easy addition, I think:  just add 
(ppsv->FreeIfHandle)(LPVOID)
which runs the same code as PowerPro runs to look for registered 
signatures and free them.  Plugins will have to call this before 
freeing something that could contain a handle.


Of course, 
v=vec.create(100)
v[0] = v
vec.destroy(v)

will create an infinite loop.








Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to