Hi Jordan.
Either 'counter' is passing 949, 'counter' is a Int8 and so is going
negative, your character array isn't stored in memory as you're thinking
(do you really have a 9K block reserved for storage of numbers like
this?) or we're not seeing all the code.
What development environment are you using? Both Metroworks and
PRC-tools support the use of debuggers which would be of great value to
you here, because you could then step through this a line at a time and
see what's really going on.
-Ken
On Thu, 2003-01-30 at 14:49, Jordon Marshall wrote:
> I stripped this thing down all the way, now it just traverses the array. Yet
> it still gives me Fatal Exception, only sporadically just like before, I am
> really lost. By the way I initialize the last entry in the array as '\0' ,
> also this array is declared and initialized in the same segment as the code.
>
> char array_of_store_numbers[950][10] = {
> "6489", "14280", "16496", "21374", "5006", "5186", "2666", "14262", "5332",
> "15684",
> "18058", "20938", "19158", "19952", "21375", "17387", "18045", "17755",
> "19576", "20999", .......
>
>
> while(array_of_store_numbers[counter][0] != '\0' && !found)
> {
> counter++;
> }
>
> I do appreciate the help earlier by everyone.
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please see
>http://www.palmos.com/dev/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/