> // initialize match data -- block 2
> for (i = 0; i < 5; i++ ) {
> gMatchVar[ i ] = -1;> If I comment out all the code in this routine, everything works > normally. If I include the code in block 1, I can switch to this form > ok, and it seems to work as I'd hope, but then when I try to bring up > the menu on this form, I get a bus error. If I include block 2, I get a > bus error as soon as I try to switch to this form (it looks like when > the FrmDrawForm routine is called). > > Here's a bit of supporting definitions and code: > > /*********************************************************************** > * > * Global variables > * > ***********************************************************************/ > Int16 gMatchVar[4]; First thing I see: gMatchVar[4]; has array indexes of 0,1,2,3 as declared above. In your loop in block 2, you are going 0,1,2,3,4. Oops. Which is right? Your variable declaration, or your loop? -- Scott -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
