Hi folks,
I just fixed a bug in my app, but I don't really understand why it is a bug. Perhaps someone could shed a little light on it. To demonstrate the problem to myself, I created a little test function that does nothing other than declare a character string. The function is called in response to an alarm notification, so globals aren't allowed, and I don't INTEND to call globals. I comment out the various declarations to test one at a time. The first 2 declarations work fine, the last 2 crash, and it's all very repeatable in the simulator (and on SOME devices, not all).
void testCrash(void)
{
Char st[6]; works
//Char st[6]="a"; works
//Char st[6]=" "; crashes
//Char st[6]=""; crashes
}I know how to work aroung this, but I get the feeling I'm missing something fundamental.
Bob.
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
