Aaron Ardiri <[EMAIL PROTECTED]> wrote:
>>> Also be aware that certain functions are required to be in the first
>>> segment. The Palm Knowledge Base has articles on that subject.
>
> John, want to clarify this?
Why ask me? Why not look in the manual? [1]
The current implementation puts pointers to the code resources
into the application's global data. This means that you must
not attempt to call a function that is not in the main code
section when globals are not available, e.g., when processing
a launch code that doesn't give you globals.
And also:
>> You also need to include any function that will be called by
>> PilotMain when globals are not available, and the Palm runtime
>> libraries.
>
> *if* you use global variables :)
You *are* using global variables when you call between different code
sections. I thought this was clear; it was certainly clear in my
PalmSource talk; I've changed the above paragraph in the manual to make
it really clear.
John "For every `Go To Statement [globals] Considered Harmful' thesis,
there is an equal and opposite `Structured Programming with goto
Statements [globals]' paper"
[1] http://prc-tools.sourceforge.net/cgi-bin/info/multiple+code+resources
Also installed when you install prc-tools; just type "info prc-tools"
or look for the .html versions.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/