> From: John Marshall [mailto:[EMAIL PROTECTED]]
> >[Quoting Bob Ebert...]
> >> Probably by keeping the [code segment] handle around
> >> in a different variable...
> 
> Right.  I didn't want to use up some more global space and complicate
> the startup code doing this, but perhaps we'll have to.  :-(

Take a look at the equivalent in CodeWarrior, the function called
__LoadAndRelocate__() in PalmOS_Startup.c.  It calls DmGet1Resource() to
recover the code segment handles to be unlocked.  (And I sure hope that CW
multi segment apps are ROMable!)  Would this work in GCC?

-slj-


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to