So - create a simple array a[3] of bytes (size and type probably irrelevant)
Initialiser of {1,2,3} works perfectly.
Unfortunately so does {1,2,3,4} - however this causes bad things to happen - saving and reloading locks Flowcode.
Adding a macro Test(array) - passing the array closes FC on debug - but gives an error (array index out of bounds) or crashes on adding the call to Test.
Note that it only allows 1 extra byte (or value) - so {1,2,3,4,5} gives initialiser error.
I miscounted and pasted a chunk of data....
Martin
Array initialiser out of bounds - crash
-
- Valued Contributor
- Posts: 988
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 106 times
- Been thanked: 517 times
-
- Matrix Staff
- Posts: 1269
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 168 times
- Been thanked: 285 times
Re: Array initialiser out of bounds - crash
Thanks, Martin. I will add it to my list and fix in a future update.