The problem fails at one instruction. I have a function call that returns a double value to a variable declared by:
double SecondFact;
I initialize that with:
SecondFact = 0;
Now, here is the original use of the statement that causes the problem:
SecondFact = (double) ParseBaseInt(dd, SecondFact, &baseErr);
This statement causes a system reset. dd, SecondFact and baseErr are defined properly and I have even removed that function all-together and I still have the same error, so the function, itself, isn't the problem.
This sounds like the perfect kind of problem to be solved by hooking a debugger up to PalmSim and tracing at the assembly level. Determine what instruction causes the crash, and then look at the registers to see what kind of memory access is happening that's bad.
-- Ben Combee, DTS technical lead, PalmSource, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Palm OS Dev Fourm Archives: http://news.palmos.com/read/all_forums/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
