i think you mean "Form already loaded" (in FrmInitForm), because in the OS
source there is nowhere that says "Form Not Loaded".

so you get a frmCloseEvent, but are you remembering to call FrmDeleteForm in
response to frmCloseEvent?  either that, or return 0 from the event handler
to force the FrmHandleEvent to also handle the event, and FrmHandleEvent
will automatically call FrmDeleteForm for you.


-----Original Message-----
From: Samir Raiyani <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, May 11, 1999 8:38 AM
Subject: Form not loaded error


>
>Hello:
>
>I have been trying to figure out why I am getting a "Form Not Loaded"
>error on the Emulator (and a corresponding crash on the device) when I
>call FrmGotoForm() on one and only one out of the 5 different forms I use
>in my application.
>
>I am fine as long as I use FrmReturnToForm() instead.  But that, as Bob
>pointed out earlier, is not a good solution.  I stepped through the
>debugger to see if FrmCloseEvent was being invoked on this form when it
>went out of use, and sure enough it is.
>
>Is there any other reason why a form would not be "un"loaded?  How can I
>detect a "dangling" form in my application?
>
>Thanks,
>Samir
>

Reply via email to