Jordon Marshall wrote:
I stripped this thing down all the way, now it just traverses the array. YetDo you initialize the last entry as '\0' or as "\0"? are you tracking what value for counter it's crashing on? at least generally, is it crashing usually around 450 something, usually getting close to the end, crashing anywhere between 0 and 950?
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", .......
What is the trend for where it's crashing. also, have you tried declaring the data differently, const char *array[950] or whatever is the syntactically correct version of that?
More importantly, I think you should reconsider how you're storing this data. If it is store numbers, that seems like something relatively likely to change and would probably be better represented in a database. This would allow you to keep the values updated through the conduit. If you keep the database sorted, you can find store numbers very quickly.
matt
--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
