Re: defer_front – can I rely on this regarding this context?

I do not understand why you want to use “defer_front” to such thing.

AFAIK if you want a function to be first called before the patcher is freed, and according to (as you have noticed) that there is no order guarantee, push (front or back) this function on the main queue in the object_free method will not make anything better, isn’t it ?

But a registered object can be notified by a patcher that this patcher will be freed.

object_obex_lookup(x, gensym("#P"), &x->patcher); 

if (x->patcher) {
    object_attach_byptr_register(x, x->patcher, CLASS_NOBOX);
}
Attachments:
  1. Flop.zip
Jan 3, 2013 at 10:48am #237297