Christen Fihl <[EMAIL PROTECTED]> wrote:
> I have this idea to generate my own A5 world (using NewPtr), when none
> exists. This to be done in the StartUp code.
[...]
> Is there a reason this could not work?
Even when the application's global variables are not present, the OS still
stores other data at A5, and expects to have control of A5. If you futz
with A5 and then call certain system API functions, the OS won't find its
data and things are likely to explode. It's not specified which system
functions that is, so you should assume it's all of them.
This is why people setting up their own globals world on Palm OS access
it via a different register, generally A4. This requires telling your
compiler to reserve A4 as well as A5 and to access globals via A4.
John
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/