Is it possible to know how big an array can be? Reading the manual it says "In lite-C the stack has a limited size that is sufficient for many variables, but not for huge arrays".
Zorro crashes without any error message when I size my array as ~1500.
Re: How to return array from function?
[Re: Dalla]
#468363 10/02/1711:0110/02/1711:01
That's why large arrays should be global or static. If the stack size is exceeded, a program will crash with no error message. There's no function to get an array size, since an array variable is in fact a pointer. So you must store the size in an extra variable.
Re: How to return array from function?
[Re: jcl]
#468365 10/02/1711:2310/02/1711:23
I solved my issue in another way. Realized that I didn't really need to create the array and all conditions on each new bar, so I now use a switch case statement instead which is a lot more efficient. And it has the benefit of not crashing ;-)