> If I can't use globals, then what should I do?
You *should* be able to use globals under the conditions you've given. It's
possible that Poser heuristic for determining what went wrong got confused by
some similar action. Use a debugger to figure out what's really going on.
-- Keith Rollin
-- Palm OS Emulator engineer
"Bulent Gecer" <[EMAIL PROTECTED]> on 07/07/2000 05:27:49 AM
Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent by: "Bulent Gecer" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
cc: (Keith Rollin/US/PALM)
Subject: global variables?
When "MyApp" gets launched by another application with the call
SysAppLaunch(...), I get the following message in POSE:
""MyApp" 1.0 has just tried to access a global variable at a time when
global variable access is not allowed. Typically, this means that the
application tried to access the global variable after PilotMain was called
with a launch code other than 'sysAppLaunchCmdNormalLaunch'. The
last launch code observed by the emulator was
'sysAppLaunchCmdNormalLaunch'."
Is "MyApp" not allowed to use global variables if it gets launched by
another app? I've tried the exact same code on a Palm Vx device
without getting any errors. By the way, "MyApp" gets launched with
the 'sysAppLaunchCmdNormalLaunch' as the message above shows.
If I can't use globals, then what should I do?
I'd be glad for any input!
Kind regards,
/Bulent Gecer
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/