>I'm getting a Bad Window error in the Simulator when closing a modal form >which is a splash screen
I've encountered the same thing in the past in POSE, not the Simulator. I don't remember the reasons (that was a while ago), but the following sequence of events (some details have been omitted) solved the problem for me: FormActiveStateType curFrmState; FrmSaveActiveState ( &curFrmState ); FrmSetActiveForm ( NULL ); frmP = FrmInitForm ( dlgID ); FrmSetActiveForm ( frmP ); FrmDrawForm ( frmP ); // Do your initialization stuff here FrmDoDialog ( frmP ); FrmEraseForm ( frmP ); FrmDeleteForm ( frmP ); FrmRestoreActiveState ( &curFrmState ); Regards, Steve Mann -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
