Hi, I'm calling FrmAlert inside my FrmCloseEvent and this is generating a
FrmUpdateEvent.  Then my program hangs because I think its trying to redraw
the screen that was obscured by the alert, except that the form has already
been closed. I tried intercepting the formupdateEvent in my event handler
and returning true and changing the updateCode to 0, but it doesn't help.
When I set a breakpoints in my FrmCloseEvent and in FrmUpdateEvent, the
FrmCloseEvent trace looks like this:

PilotMain
StarterPalmMain
AppEventLoop
0x10C710D8( FrmDispatchEvent )
0x10C6D50A( PrvSendEventToForm )
CarFormHandleEvent

and the stack trace at the breakpoint in FrmUpdateEvent looks like this:

PilotMain
StarterPalmMain
AppEventLoop
0x10C710D8( FrmDispatchEvent )
0x10C6D50A( PrvSendEventToForm )
CarFormHandleEvent
SaveCar
0x10C70522( FrmAlert )
0x10C70B66( FrmCustomAlert )
0x10C70C5C( FrmDoDialog )
0x10C6E0E2( FrmEraseForm )
0x10C6DC4C( PrvRedrawDisplay )
0x10C6D50A( PrvSendEventToForm )
CarFormHandleEvent

Then if I step out of the eventHandler it looks like this:

PilotMain
StarterPalmMain
AppEventLoop
0x10C710D8( FrmDispatchEvent )
0x10C6D50A( PrvSendEventToForm )
CarFormHandleEvent
SaveCar
0x10C70522( FrmAlert )
0x10C70B66( FrmCustomAlert )
0x10C70C5C( FrmDoDialog )
0x10C6E0E2( FrmEraseForm )
0x10C6DC4C( PrvRedrawDisplay )
0x10C6DC4C( PrvRedrawDisplay )
0x10C6D50A( PrvSendEventToForm )


Then if I hit play it hangs.  Any ideas on the problem and how I can get
around it and call an alert in FrmCloseEvent?  Thanks a lot.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to