>Subject: Re: global variables
>From: "Ben Combee" <[EMAIL PROTECTED]>
>Date: Thu, 15 Mar 2001 08:41:29 -0600
>
> I am having a hard time understanding the restrictions on access to global
> variables in the PalmOS environment.  The various documents I have read
> state that global variables are not available for certain launch codes.
> Does this mean the variables themselves are not accessible, or have they
> merely not been initialized?

Unlike a program in a Windows or DOS OS, the programs in Palm OS
are being called all the time.  There's all kinds of system events that
result in your program being called, and with most of them you don't
have access to global variables.
However, when your program is being called because someone wants
to use it, you have globals.
Normally, unless you are concerned with one of the system level
events, you just ignore them and make sure that the path through
your code doesn't use any global variables.

Roger Stringer
Marietta Systems, Inc.



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

Reply via email to