Does anyone know what causes the following error?
Form.c, Line: 1728, Object not in form
I'm writing a dice game that has an UpdateForm() function. The function
sets up the form based on the GameState enum (enabling/disabling the Roll
button, dice, etc.). It also operates on the score fields. When the
program starts a new game is created and UpdateForm() is called. It goes
through fine the first run through. Then after selecting the Roll button,
some variables are changed and UpdateForm() is called again. At this point
any call to FrmGetObjectIndex results in the above error.
I found an article online about calling FrmDrawForm before calling
FldDrawField, but that hasn't resolved the problem.
Thanks in advance,
Jeremy
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/