> Are you sure about that, Ben?  A5 should be set for the calling app.
When the
> plugin is sublaunched, A5 should still be set up for the application
and hence,
> the function whose pointer was passed to the plugin should still be
able to
> use any globals.

In debug ROMs, at least, A5 is changed on entry to the subcalled program
to point to an invalid area -- this allows the emulator to quickly warn
you if you try to use globals.  If you call back to the program that
sublaunched you, your A5 will still be invalid.  If you want to use the
original program again, you can sublaunch it back -- A5 will be restored
for the duration of the second sublaunch.





-- 
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