Max 7 crashes when hiding textfield attributes


    Nov 13 2014 | 9:48 pm
    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

    • Nov 14 2014 | 12:50 am
      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.
    • Nov 14 2014 | 1:01 am
      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
    • Nov 14 2014 | 9:37 am
      Hi Daniele,
      Thanks, I can reproduce. We'll try to get this straightened out for an update.
      Jeremy