max/msp runtime error

johnwho@gmail.com's icon

Below is code I'm using for an mxj object.....

import com.cycling74.max.*;
public class PatcherMod extends MaxObject {
public PatcherMod() {
MaxPatcher a = this.getParentPatcher();
a.newDefault(100,100,"cycle",null);
}
}

and when I try to create it, I get a runtime error that says

"pure virtual function call -r6025"

What's going on??

topher lafata's icon

i believe newDefault might be broken and has been for a while for
both javascript and java.
Try newObject and see if that helps.
topher