06-08-2014 09:36 AM
06-08-2014 10:04 AM
Hi,
The stack cannot handle large arrays.
Allocate your array on the heap, using malloc(): http://stackoverflow.com/questions/5746377/allocating-a-large-5000-array
06-09-2014 01:43 AM
Alternatively, you can set the stack size in Build Options.
If your array size cannot be predicted previously the heap size suggested by JKSH is the best way to handle it. Remember to free the memory when you have terminated using it.