I have been reviewing event logs in order to debug a problem. I do not
understand the sequence of events when you exit one form (a dialog box with
an ok button) and return to a base form.


62048.591 (63236): <-  EvtGetSysEvent: penDownEvent    X:9   Y:142
62048.601 (63236): <-  EvtGetEvent: penDownEvent    X:7   Y:62

   makes sense, pen down in the ok button

62048.601 (63236):  -> EvtAddEventToQueue: ctlEnterEvent   ID: 12004
62048.601 (63236): <-  EvtGetEvent: ctlEnterEvent   ID: 12004

   makes sense, entering the ok button

62048.601 (63237):  -> EvtEnqueuePenPoint: pen->x=-1, pen->y=-1.
62048.601 (63237): <-  EvtGetPen: screenX=7, screenY=62, penDown=0.

   I don't understand what these are for

62048.611 (63237):  -> EvtAddEventToQueue: ctlSelectEvent  ID: 12004   On: 0
62048.611 (63237): <-  EvtGetEvent: ctlSelectEvent  ID: 12004   On: 0

   makes sense, pen must have been lifted, and the ok button was selected

62048.722 (63237):  -> EvtAddEventToQueue: frmUpdateEvent    ID: 1500

   makes sense, this is a call to FrmUpdateForm

62048.842 (63237): <-  EvtGetEvent: winExitEvent    Enter: 00004AB4   Exit:
00005AA6  Enter Form: "Flight Plan"
62048.842 (63237): <-  EvtGetEvent: winEnterEvent   Enter: 00004AB4   Exit:
00005AA6  Enter Form: "Flight Plan"

   makes sense, the old form is gone, and the new form is in place

62048.852 (63237): <-  EvtGetEvent: frmUpdateEvent    ID: 1500

   makes sense, the update event generated by my call to FrmUpdateFrom

62049.042 (63237): <-  EvtGetSysEvent: penUpEvent      X:9   Y:142
62049.042 (63237): <-  EvtGetEvent: penUpEvent      X:9   Y:142

   this is where I get really confused. It appears that this is the pen up
that resulted in the ctlSelectEvent
   (the ok button on the previous form).
   I am surprised that this event is generated since I would have assumed
that the pen up would have been
   handled by the system when it was tracking the pen before it generated
the ctlSelectEvent.

62049.052 (63238):  -> EvtEnqueueKey: ascii = 0x00F9, keycode = 0x0000,
modifiers = 0x0000.
62049.052 (63239): <-  EvtGetSysEvent: keyDownEvent    Key:0xF9,  Modifiers:
0x0000
62049.052 (63239): <-  EvtGetEvent: keyDownEvent    Key:0xF9,  Modifiers:
0x0000

   the penUpEvent results in a keyDownEvent being generated on the new form

62049.132 (63239): === ERROR:
*****************************************************
62049.132 (63239): === ERROR: ... SysFatalAlert with the message: "Table.c,
Line:94, Text not usable".
62049.132 (63239): === ERROR:
*****************************************************

This does not normally cause a problem, but after 2.7 million gremlins, this
problem occurred.

Any help would be appreciated,

Laurie



-- 
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