Max 7 crashes when hiding textfield attributes
For an object having a textfield I didn't want the textfield attributes to be shown, so I had these four lines in my code:
CLASS_ATTR_INVISIBLE(c, "textcolor", 0);
CLASS_ATTR_INVISIBLE(c, "fontface", 0);
CLASS_ATTR_INVISIBLE(c, "fontsize", 0);
CLASS_ATTR_INVISIBLE(c, "fontname", 0);
No issues with Max 5 or Max 6 – it crashes in Max 7 as soon as I select my object and click the new "Format" button.
Is it something I'm not supposed to do, or is it a Max 7 bug?
Thanks,
Daniele Ghisi
If you can send your project and code to support@cycling74.com and tell them this is in regards to ticket #8316 then I can take a further look at it. Thanks.
Hi Tim, it's extremely easy. Just take the uitextfield example in the SDK and add these lines
CLASS_ATTR_INVISIBLE(c, "textcolor", 0);
CLASS_ATTR_INVISIBLE(c, "fontface", 0);
CLASS_ATTR_INVISIBLE(c, "fontsize", 0);
CLASS_ATTR_INVISIBLE(c, "fontname", 0);
before class_register() in the main() routine.
Compile, and you should have Max crash as soon as you click the "Format" button for [uitextfield] (at least this is what happens to me).
Daniele
Hi Daniele,
Thanks, I can reproduce. We'll try to get this straightened out for an update.
Jeremy