> switch (eventP->eType)
> {
> case ctlSelectEvent:
> UInt16  ctrlID = eventP->data.ctlSelect.controlID;
> ControlPtr ctrlPtr=
> eventP->data.ctlSelect.pControl;
>
> if (ctrlID == MainAboutButton)
> {
> <snip>
> }
>
> if (ctrlID == MainClearButton)
> {
> <snip>
> }
>
> case menuEvent:
> return MainFormDoCommand(eventP->data.menu.itemID);
>
> <snip>

Have you stepped through the code with debugger?  This will help you see the
flow through the code.

Looks like you're missing a break or return in your ctlSelectEvent.  This
will send you through your handler for menuEvent with invalid eventP data.

HTH

Jeff



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to