You have pretty much described what you want to do. Call your app with SysAppLaunch with a launch code, possibly, SysAppLaunchCmdCustomBase (SysAppLaunchCmdDisplayAlert might work, but I don't know in what other conditions it is sent to you).
In your app respond to this launch code and open whatever databases and put up your form without using globals. The code that processes this launch code must look like a subroutine. If you are calling yourself, you can tell since (launchFlags & sysAppLaunchFlagSubCall) is true. You may not have to re-open your databases etc. in this case. Matt ----- Original Message ----- From: "Bob Baker" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Friday, April 04, 2003 8:14 AM Subject: Launching an app at interupt time > Hi all. I have the following problem: > > I've installed (working) code that replaces the EvtGetEvent function. > During the execution of my code I need to (asynchronously) start a > 'Help' application. This 'Help' app does not want to cause the current > application to end but needs to display a single screen for a preset > amount of time (the screen to be displayed varies based on passed info). > > I've tried SysLaunchCmdNormalLaunch and SysLaunchCmdDisplayAlert via > SysAppLaunch; I've tried using notification. It seems that the 'called' > app has no access to globals at start time and produces a 'Fatal Error'. > > Anybody got any ideas??? > > Thanks for your help. > > Bob Baker > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
