> case frmLoadEvent: > // Handle > formID = event->data.frmLoad.formID; > form = FrmInitForm(formID); // crash here > FrmSetActiveForm(form);
We can only guess, but it seems like FrmInitForm returns NULL (which might happend e.g. if formID is not correct or you run out of memory). Try this: check the value of formID. See if it corresponds to a form id from your resource file. Check the value of form after FrmInitForm(). If it's (consistently) NULL then there's something wrong elsewhere - this function should only fail in exceptional circumstances. And finally it's a good thing regardless to check the result of FrmInitForm() and gracefully exit the application if it's NULL. Krzysztof Kowalczyk | http://blog.kowalczyk.info -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
