I thought I knew what I was doing here, but I'm confused.
I have a menu that brings up a dialog box. In that dialog box I have a bunch of
fields that get filled out. If one of the fields has data that is out of range
when the OK button is pressed, I throw up an alert, and would like to return to
the dialog box.
Now the OK button has dismissed the dialog box, but that's OK, because I can
just repost the menu event and come right back in, yes?
When I try that with the following code segment:
MemSet (&myEvent, 0, sizeof(EventType));
myEvent.eType = menuEvent;
myEvent.data.menu.itemID = MyMenuID;
EvtAddEventToQueue(&myEvent);
I get dumped out when I get back to my FrmDoDialog(frm) call with the error:
MyApp has just read directly from an unallopcated
chunk of memory.
Any idea what I'm missing?
Thanks,
-Tim
--
Tim Hewitt
Principal Software Engineer
Fairchild Semiconductor