Hi,
I keep getting frmP->formId = 0 from the AppHandleEvent. Here is the block
of code:
UInt16 formId;
FormPtr frmP;
Err error;
if (eventP->eType == frmLoadEvent) {
formId = eventP->data.frmLoad.formID; //line#1
frmP = FrmInitForm(formId); //line#2
FrmSetActiveForm(frmP); //line#3
error = DmGetLastErr(); //line#4
}
I am getting formId = 1000 from line#1, frmP = 0x00004E34 and frmP->formId
= 0 from line#2, and error = 0 from line#4. I believe the problem
occurred at line#2 since the function FrmInitForm didn't get the formId.
But why it returned a not null pointer to a form? Please help. Thanks.
-Elizabeth
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/