I am doing what I think is a pretty standard routine:

static void AddUserEventLoop(SQLUserID* pSQLInfo)
{
        EventType event;

        do
        {
                EvtGetEvent(&event, evtWaitForever);
                if (! SysHandleEvent(&event))
                                if (! AddUserHandleEvent(&event))
                                        if (! 
AddUserMainFormHandleEvent(&event, pSQLInfo))
                                                FrmDispatchEvent(&event);
        } while (event.eType != appStopEvent);
}


But I am getting a Emulator crash when I call the Palm OS routine: 
FrmDispatchEvent(&event)

I am calling PalmMain using a method that requires no globals and the emulator 
is telling me that while it is doing FrmDispatchEvent gloabls are being used 
which I suspect may be the problem.

Does FrmDispatchEvent(&event)require globals and if so how do I call if I am in 
a mode where I cannot access globals?

Thanks

Greg



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

Reply via email to