Hi Ben,
thanks for the detailled Info!
Best Regards
Tam Hanna
Ben Combee wrote:
>In my App, when I receive a launch code where globals are not accepted, I
>cannot acess any variables defined outside of the function that is beeing
>called.
You cannot access any variables that aren't located on the stack. This
includes global variables, static variables, and some kinds of constant
data.
>I can, however, call another function!
Yes. Basically, you can access things that are PC-relative and
SP-relative, but not things that are A5-relative. PC-relative items
include other functions and constant data stored in the code section, while
SP-relative items are local variables on the stack.
>In addition, I can receive my application preferences when I define the
>buffer inside of my function. The externally defined Type an however be
>used!
Types don't have an "in-memory" representation. This isn't a language
scoping issue, it's a hardware-memory-addressing issue.
>However, the regular variable used for storage of the preferences(it is
>located outside of PilotMain), canot be used!
That would be correct.
-- Ben Combee, Technical Lead, Developer Services, PalmSource, Inc.
"Combee on Palm OS" weblog: http://palmos.combee.net/
Developer Forum Archives: http://news.palmos.com/read/all_forums/
--
NEU +++ DSL Komplett von GMX +++ http://www.gmx.net/de/go/dsl
GMX DSL-Netzanschluss + Tarif zum superg�nstigen Komplett-Preis!
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/