• tomprice

    So I have code here for a rather simple pd extern "myclass". It appears to me that what a myclass object should do upon receiving a bang message is post 0 (num gets set to 0 in the constructor, then it justs posts num). However it always posts 1. Does anyone see what could be going wrong here? Thank you very much in advance.

    Code:

    #include "m_pd.h"

    static t_class *myclass;

    typedef struct _myclass {
    t_object x_obj;
    t_int num;
    } t_myclass;

    void myclass_bang(t_myclass *x)
    {
    post("%d", x->num);
    }

    void *myclass_new(void)
    {
    t_myclass *x = (t_myclass *)pd_new(myclass);
    x->num = 0;
    return (void *)x;
    }

    void myclass_setup(void) {
    myclass = class_new(gensym("myclass"),
    (t_newmethod)myclass_new,
    0, sizeof(t_myclass),
    CLASS_DEFAULT, 0);
    class_addbang(myclass, myclass_bang);
    }

    posted in extra~ read more
  • tomprice

    Hello everyone.

    I am using PD 0.41.4 extended with Windows 7.

    When I right-click a [select] object and go to "help", PD crashes.

    I haven't noticed this with any other objects.

    Anyone have any idea how I could fix this?

    If not, is there some other sort of resource where I can find detailed information on pd objects?

    posted in technical issues read more
  • tomprice

    The above problem occurred while I was using my extern on Windows 7. Today I tried it on Ubuntu and it worked fine. I guess this is some sort of bug with pd for Windows.

    posted in extra~ read more
  • tomprice

    The screenshot is quite helpful, thanks.

    posted in technical issues read more

Internal error.

Oops! Looks like something went wrong!