> From: [EMAIL PROTECTED]
>
>    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.
>

How did you determine that frmP->formId is 0 at line #2?

If you are stepping through your code with the CodeWarrior debugger, make
sure you have turned off all optimizations before debugging.  Otherwise, the
values of variables may not be correctly displayed.


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