As a followup to my previous post; as a test I put a button in the Form and just return "false" when the button was tapped (and didn't call FrmReturnToForm). The dialog closed fine and there's no problems. But other than for testing, this doesn't really help me, since I really need to return when a PushButton is pressed.
~Rich ----- Original Message ----- > Some code that worked fine with POSE "palmos35-en-*.rom" is giving me > trouble with "palmos31-en-iiix-dbg.rom." I have a Form that is realized by > the function calls: > > FormPtr dialog = FrmInitForm( formID ); > FrmSetEventHandler( dialog, handler ); > FrmDoDialog (dialog); > > In my handler's switch() statement, I return to the previous from when a > Push Button is selected like this: > > case ctlSelectEvent: > FrmReturnToForm(0); > handled = true; > break; > > The problem is I'm getting the error: > > "App (X,X) just read from memory location 0x0000221E, which > is in an unallocated chunk of memory." > > before FrmDoDialog() finishes executing. This code worked fine for ROMs on > or after 3.5, but now that I'm trying to port back to OS 3.1 its giving me > trouble. > > Thanks! > Rich -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
