> I know the limitation about global variables with > sysAppLaunchCmdFind launch code. But it seems to be > impossible to use functions from another segment as the main > one, with this launch code. > Can some body tell me more about that, and if there is a > solution to short-cut this limitation??? You can't call functions in other code segments on a launch code other than the normal app launch. There was a thread a few weeks back which indirectly discussed this. Here's my understanding: Because there is a 64K code size limit for code resources (or for any PalmOS record), when a multi-segment app starts up, the OS grabs the first code segment resource and locks it down and jumps into it to start executing. If there are additional segment resources in the code, the CW compiler will generate code to locate those segments, lock them, and setup function jump tables into those code segment resources. CW won't generate the code to lock and setup other segments for launch codes other than a normal launch. I thought I read on the list a while back that some of the opensource tools like those available at Aaron Ardiri's site (www.ardiri.com) will generate the code to lock and setup additional code resources. Anyone out there know if they will? To make your code work w/ CW, you need to make sure that any code that gets called from a non-normal launch code is in your first segment. Cheers, -DGA -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
