Bob Baker wrote:
>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'.

Are you trying to run an application at interrupt time?  I'm not sure
about OS 5, but under OS 4, the PalmOS GUI is NOT thread-safe, e.g. it
will crash if you try and run the GUI from any thread other than the
main application thread.

So I think you can only do non-GUI stuff at interrupt time.  If you want
to do anything involving the OS GUI (help form, etc.), you have to wait
until out of the interrupt thread, and in the main event loop of the
current running application.   Some sort of alarm or delayed notification
might be worth trying.


IMHO. YMMV.

Ron Nicholson
HotPaw Productions
 http://www.hotpaw.com/rhn/hotpaw/


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

Reply via email to