I'm getting a Bad Window error in the Simulator when closing a modal form
which is a splash screen, i.e. it is displayed before any main forms are
initialised. The error only occurs when the app is launched directly by an
installer on the Palm (Combiner if it makes a difference). In other words,
it works fine on POSE, real OS 3.5 - 4.1 devices, and the Simulator when
launched normally.
Here is the way I open the form. I'm guessing that it crashes at the delete
form call, but haven't actually managed to debug with the installer.
form = FrmInitForm(formId);
// Mess with some fields. FldSetTextPtr on some non-editable fields, and
FrmShowObject
FrmDoDialog(form);
FrmDeleteForm(form);
Am I to assume that it is a Bad Thing to use a modal form before a non-modal
form is loaded? The Palm stationary/example/whatever does a FrmAlert if the
ROM is incompatible, so I assumed this was OK. Or could it be that the
Combiner is leaving the screen/window in a funny state?
Any ideas as to a workaround? I'm off to look at the code for FrmAlert...
Matt
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/