With that said, I am baffled. Here's the problem I'm seeing.

Codewarrior 9.1 complains with the following WARNINGS:

  Segment 'Seg1' is greater than 64KB, it will generate an invalid PRC
file.

  PalmRez Warning: Output resource size is greater than ~64K size limit:
'code 1'

In my Segments tab, the ONLY things listed in Seg1 are:

Seg1                    4K      1K
---------------------------
StartupCode.lib 514     42
PalmOS.win.pch  n/a     n/a (actually 2K on hard drive)
MyApp.rsrc              n/a     n/a (actually 70K on hard drive)
MyApp.cpp               3616    987

Furthermore, when I drag the resulting PRC onto POSE running an OS3.1
dbg ROM (my target platform), I get "Could not install the Palm OS file
"MyApp.prc" because an out of memory error occurred while installing
resource 'code'(1).  It's possible that the reason for this error is
because the size of this resource (68614) is larger than the current
allowed maximum of 65505."

It was my assumption that MyAPp.rsrc was causing the problem, and that I
needed to reduce it in size down to 60k or so so it would fit in Seg1.
Ben, if I follow you, unless I have a very large bitmap (which I don't
-- two dozen forms, three dozen small bitmaps, that's about it), the
problem isn't anything to do with the resource file?

This is very odd. Turn of linker map file generation in the 68K Linker pref panel and look at the contents of the first code segment. It may be that you have inline or template code from other segments that is being put into the first segment. If you know that this code won't be called from a non-global-providing launch code, you can turn off the "compiler glue in first segment" switch in the 68K Linker panel.


The figures in the columns in the IDE are VERY approximate, and don't take into account the actions of the linker. They are just a guide.

--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com



-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to