[PD] iemguts canvas delete method

Jonathan Wilkes via Pd-list pd-list at lists.iem.at
Sat Jun 14 21:50:09 CEST 2014

On 06/14/2014 02:33 PM, IOhannes m zmölnig via Pd-list wrote:
> On 06/14/2014 08:13 PM, Jonathan Wilkes via Pd-list wrote:
>> Hi list,
>>       Iemguts has an object [canvasdelete] which, when you create it,
>> goes in and adds a "delete" method for canvases.  This allows you to
>> send a "delete $1 $2 etc." message to a canvas, where "$1 $2 etc." are
>> indices of objects you wish to delete from a particular canvas.
>> In the code I see this comment:
>>    /* this will crash Pd if the object to be deleted is on the stack
>>     * workarounds:
>>     *   - use a clock (see above)
>>     *   - finally fix this in Pd
>>     */
>> 1) How do I use a clock?  If the object no longer outputs in zero
> the problem is, that if an object delete's itself, it will delete a
> context that is referenced later when unwinding the stack.


Where is the stack-maintenance code for Pd located?


More information about the Pd-list mailing list