Hi,
I'm trying to add SysAppLaunch functionnaly to my app. But it seems that i cannot use SysAppLaunch to call a multi-segment application, i have an "invalid read from xx" error calling a function Outside the first segment.
Is there a way to fix this problem with CW9.3 ?
On a SysAppLaunch, the sublaunched application doesn't have access to global variables, which means that there's no space to put the jump table used to acess code in other segments.
There are ways to work around this:
1) move the code you need to handle the sublaunches into the first segment
2) rework some of the code to be in standalone code sections and manually load/lock/call those code sections as needed.
3) relaunch yourself with globals after you've determined that this is a launch code you want to handle (look at the flags to SysAppLaunch)
-- Ben Combee, Technical Lead, Developer Services, PalmSource, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Developer Fourm Archives: http://news.palmos.com/read/all_forums/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
