dc.fillPolygon array size limit.

Although the array size limit of 64 is stated in the docs, it's not specified what happens if one exceeds this value.
When the limit is exceeded on a device (F5), the the app just freezes, not crash. On the F5 Sim, the app continues to operate but the displayed data is corrupted.

A limit that isn't enforced is a bit of a trap for young players.
  • I feel your pain, as there's a few fatal errors in Monkey C that I wish were catchable exceptions, such as array out of bounds and bad format string, or even just plain "normal errors" (i.e. function returns null instead of the usual object/number). In cases where user input is involved, the code for duplicating the kinds of checks that the VM already does adds bloat (both in code size and run-time).

    In this case it's a static limit tho, and not something that can change at runtime or be dependent on user input (I hope), so it's on the lower end of the scale IMO.
  • Former Member
    Former Member
    What it should do is truncate the points beyond this limit, but this is not happening. I've made a change to fix this problem and generated a ticket to track its resolution.