Array initialiser out of bounds - crash

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
mnfisher
Valued Contributor
Posts: 953
http://meble-kuchenne.info.pl
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 104 times
Been thanked: 507 times

Flowcode v10 Array initialiser out of bounds - crash

Post by mnfisher »

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....
Array.fcfx
(7.63 KiB) Downloaded 41 times
Martin

Steve-Matrix
Matrix Staff
Posts: 1253
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 167 times
Been thanked: 277 times

Re: Array initialiser out of bounds - crash

Post by Steve-Matrix »

Thanks, Martin. I will add it to my list and fix in a future update.

Post Reply