On Mar 25, 2014, at 6:00 AM, [email protected] wrote:

> From: Kjetil Matheussen <[email protected]>
> Subject: Re: [PD-dev] Destructor in external classes
> Date: March 24, 2014 at 12:32:00 PM CDT
> To: Antoine Villeret <[email protected]>
> Cc: IOhannes m zmölnig <[email protected]>, pd-dev List <[email protected]>
> Reply-To: [email protected]
> 
> 
> On Mon, Mar 24, 2014 at 2:56 PM, Antoine Villeret
> <[email protected]> wrote:
>> hello,
>> 
>> the free method seems to be called when the object is deleted from the
>> canvas.
>> 
>> is there a similar method called on Pd quit ?
>> I'm asking that because I'm rewriting a pix_openni2 object and to free the
>> openni context i have to call a shutdown() function on quit and not on
>> object deletion
>> 
> 
> How about 'atexit'?


Why not keep track of the number of open openni objects, then call shutdown 
when the last one is released?

--------
Dan Wilcox
@danomatika
danomatika.com
robotcowboy.com





_______________________________________________
Pd-dev mailing list
[email protected]
http://lists.puredata.info/listinfo/pd-dev

Reply via email to