I posted the following earlier today, but never received its echo.
Hence I am sending it again. If you have received it twice, I apologize
---------------------------------------------------------------------
My application displays a modal dialog containing a field. Using the
emulator and the PalmOS 2.0 debug roms (on windows), I perform the following
steps:
1. Pop the form up.
2. Tap on the field, giving it the focus. (It is empty to start with.)
3. Graffiti in the "cursor back" stroke.
The OS now complains that my app "has just read directly from memory
location zero (NULL)."
This behavior does not manifest with a real PalmOS 2.0 device, nor with any
other debug rom I have tested against.
I pop the dialog up in the following manner:
frm = FrmGetActiveForm();
dlg = FrmInitForm(MyDialogForm);
FrmSetActiveForm(dlg);
FrmSetEventHandler(MyDialogHandleEvent);
FrmDoDialog(dlg);
FrmSetActiveForm(frm);
FrmDeleteForm(dlg);
The crash happens inside of FrmDoDialog(). My event handler ignores all
field and key events (it is not shown in the stack trace when it crashes).
The field settings in constructor are: Width 150, Height 36, Usable yes,
Editable yes, Underline yes, Single Line no, Dynamic Size no, Max Characters
120, Font Standard, Auto Shift yes, Has Scroll Bar yes, Numeric no. The prc
build is from the 3.5 SDK.
Smells like a bug in the OS/debug ROM to me. Anyone seen anything like it??
All help appreciated.
-bob mckenzie
<[EMAIL PROTECTED]>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html