Crash on Array initialization
BlitzMax Forums/BlitzMax Beginners Area/Crash on Array initialization| 
 | ||
| This code crashes: ---------------- Local arr:Byte[1,2,3,4,5,6,7,8] Local arr2:Byte[7,12,33,6,12,28,63,8] ------------ With signal 10 (when building as cmdline app) or with the typical OS X dialog "The application crash1 quit unexpectedly" (when building as GUI) Seemingly, it crashes on initializing the second array. Config: BlitzMax 1.30 OS: Mac OS X Leopard 10.5.4 MacBook intel 2.16GHz - 2GB RAM (late 2007 rev) | 
| 
 | ||
| I'm not surprised! I think you mean... local arr[] = [1, 2, 3, 4]...or... local arr:byte[] = [1:byte, 2:byte, 3:byte, 4:byte] | 
| 
 | ||
| You mean those get interpreted as array dimensions rather than array *contents* initializers? That is -> an 8-dimensional array? | 
| 
 | ||
| Yes | 
| 
 | ||
| LOL what a silly mistake, can't imagine needing 8D arrays anytime soon.. | 
| 
 | ||
| For the record - always a good idea to ask about problems in the programming forums first.  That way we don't get the bug forum clogged up with stuff that isn't a bug at all. |