Good question. The FrmCloseAllForms() is the last executed statement in the AppStop() function, which falls back to an unaltered StarterPilotMain(), which falls out to an unaltered PilotMain(). So FrmCloseAllForms() is the last executed statement in the app, before the stack starts unwinding to exit the program. In the debugger, I get a call stack trace that's down inside the OS, already outside my app. I'll re-run it a few times until I can get the complete call stack, and report it back to you here.
Thanks! -- Darren "Keith Rollin" <[EMAIL PROTECTED]> wrote in message news:81593@palm-dev-forum... > > Darren, > > Are you basing your statement that the error occurs inside > FrmCloseAllForms on the logging information below? Because that log > doesn't indicate when a function returns to the caller. Thus, the > error could be occurring in WinPopDrawState, FrmCloseAllForms, or > (since calling WinPopDrawState is the last thing FrmCloseAllForms > does) even in the routine that called FrmCloseAllForms. > > -- Keith Rollin > -- Palm OS Emulator engineer > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
