At 07:24 AM 10/18/2000, Michal Seliga wrote:
>In first segment we have ONLY the functions PilotMain and all others functions
>directly called from PilotMain (StarterPilotMain (yes, we were too lazy to
>rename ;-), AppStart, AppStop, AppEventLoop, AppHandleEvent, RomVersion
>Compatible and few ours).
You may be using the wrong rule for determining what has to be in the first segment.
This is something that's not well documented. In your list above, AppStart, AppStop,
and AppEventLoop shouldn't need to be in the first segment.
The rule is that any code that is used by launch codes other than NORMAL launch and
GOTO launch needs to be in the first segment. That includes:
- code that's used to handle ALL launch codes, such as your main procedure which
contains the switch statement on the launch code, and probably also your ROM version
testing code, and
- code that's used to handle the remaining launch codes, such as find, reset, sync
notify, time changed, etc.
If you've applied this rule already and still have a 1st segment that's too big, I
really don't know what you can do.
--
Peter Epstein
Palm Inc. Developer
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/