Palm OS fatal error on array processing (C coding)
Posted on 2007-07-31
Situation: I am using the Garnet OS Development Suite. I am writing some C code for a palm Tungsten E2.
I am having problems with a fatal error when using an array. To narrow down the problem, I used the following code: for (i=0 ; i<5000,i++) sdata[i] = 5;
declaration: unsigned char sdata;
No coding (other than data declaration) preceded the code, when I installed the program on the palm and accessed it failed during the for loop. By playing with the upper limit on i, I determined that it failed with an upper limit of approx 1800. I then replaced the for loop with the code:
it still failed!!!
Please help... thanks