> 
> Just thinking out loud.  Wondering if there's any way a plugin that
> passes out handles could tidy up after itself when local vars go 
out
> of scope.

Yes, I was thinking the same thing.  Note that Vec and Map already 
have this with built-in "hard-coded" support.

> 
>   ppsv->registerForLocals(plugin_name, service_name, 
plugin_call_back)

Probably
ppsv->registerForLocals(BOOL b,  plugin_call_back, LPSTR sz)

(For vec and map, I use the hard-coded service name release, but a 
callback would have been better).  Need BOOL to unregister when dll 
unloaded.



> 
> plugin_call_back would be a exported function of plugin maybe 
having
> this form
> 
>    void callBackReLocalGoingOutOfScope(char* varName)

Yes.


I use the signature approach in vec and map -- if the first few 
bytes of the variable are some string with chars < 0x40, then it 
calls the service.  Easy to add a generalized version where authors 
could register their own callback and signatures.

But once I do this,  you need to create a localcopy service for the 
same reason that vec and map have one.

See the vec plugin for how it is implemented.

>






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