ok... here is:

complete message is: "MemoryMgr.c, Line 4365, NULL Handle

static Boolean ApplicationHandleEvent(EventPtr event)
{
        UInt16 formID;
        FormPtr form;
        Boolean handled = false;
        
        //  loop
        switch (event->eType)
        {
                case menuEvent:
                        // application
                        handled = ApplicationHandleMenu(event->data.menu.itemID);
                        break;
                case frmLoadEvent:
                        // Handle 
                        formID = event->data.frmLoad.formID;
                        form = FrmInitForm(formID);  // crash here
                        FrmSetActiveForm(form);         

                        switch (formID)
                        {
                                case frmMain:
                                        // frmMain
                                        FrmSetEventHandler(form, (FormEventHandlerPtr) 
frmMain_HandleEvent);
                                        break;
                                default:
                                        break;
                        }
                        handled = true;
                        break;
                default:
                        break;
        }

        return handled;
}

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

Reply via email to