Could be because 1e8 is 488 (decimal), and 1e10 is 7696
That's a lot of difference.
I wonder why 489 crashes it though. - what message does it give you for that one?
What if you use decimal dimension statements? Do those work?
1e8 is 100000000 (95.367MB)*
1e9 is 1000000000 (953,674 MB)
1e10 is 10000000000 (9536,743MB)
* - I'm assuming Dim a[x] allocates x bytes of memory. However, the manual just uses the term 'elements' without defining the actual size of the 'elements' allocated.
The Roku's stated memory capacity is 256MB.
And, yes, I get the same result if I use decimal numbers: Dim a causes a re-boot, too. (But Dim a[1e9] makes for a shorter re-boot command!)
Dim a[1e8] works because it is within the available memory limit.
DIm a[1e10] gives an Out Of Memory error because it exceeds the available memory limit.
Dim a[1e9] should also give an Out Of Memory error, as it too exceeds the available memory limit; instead, it crashes the Roku device.