Have you run the debugger and checked that

formId = eventP->data.frmLoad.formID;

gives you the proper formId?

Mert EÞSÝZ wrote:*-This code running and exit from funciton.

> static Boolean AppHandleEvent(EventPtr eventP)
> {
>         UInt16 formId;
>         FormPtr frmP;
>
>         if (eventP->eType == frmLoadEvent)
>                 {
>                 // Load the form resource.
>                 formId = eventP->data.frmLoad.formID;
>                 frmP = FrmInitForm(formId);   /**** This code crashing my
> app *****/
>                 FrmSetActiveForm(frmP);
>
> *-Very interesting. My function is running true but My app crasing.
> *-If my code dont work, apps is running true ;-)
>
> If you can help me, I'm very glad..
>
> Thank you..
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please see 
>http://www.palmos.com/dev/tech/support/forums/


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