I want to switch between two menu bars at runtime.  In Metrowerks
Constructor, two menu bar resources are defined with IDs of 1000 and 1100,
and the form's menu bar ID is set to 1000.

When handling the frmOpenEvent, my application naively calls

        FrmSetMenu (FrmGetActiveForm(), 1100);

This call does not directly produce an error message.  However, when I tap
on the menu icon to use the new menu, the following error message appears:

        "My-application-name has just read directly from memory manager data
structures."

Pressing the debug button leads to an error somewhere in MenuHandleEvent.
What do I need to do to use FrmSetMenu?



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