"William B. Klein" wrote:
> I have 4 segments
> Segment 1 contains (in order) StartupCode.Lib, App.c, AppFrm.c

Problem -- you need to use "MSL Runtime Palm OS (2i).Lib" in any multi
segment program, not StartupCode.Lib.  The former contains code to set
up the inter-segment jump tables, and the latter does not.  See page
PAL-24 of the Targeting book.

> Segment 4 contains App.rsrc

Segments don't contain resources, segments _are_ resources.  (The IDE is
misleading on this.)  If you created a segment just to contain this
resource file, you can delete it and just plop the resource file in any
other segment that contains actual code files.

> Every time I download the program to the Palm (SPT) the
> program crashes trying to call AppMain.  I always get a bus error

Does Palm OS Emulator give any more useful error messages?

> I have checked my project settings to make sure they are consistent 
> with the Metrowerks guide and the suggestions of this forum.

Note that there is an error in the Metrowerks Targeting book.  The 4th
point on page PAL-24 is backwards: it should say Segment 1 must contain
all code called from launch codes _other_than_ normal launch.  (And
strictly speaking, that's not quite right either.  Segment 1 must
contain all code called from launch codes that don't have global
variables.  But saying "normal launch" is usually close enough.)

-slj-

Reply via email to