For anyone following this thread - it's nice to note that while the
24bpp version starts out (as 1/4 of the 320x320 screen) at 76K, pilrc
converts it nicely to a 16bpp image and the result generated by adding a
4k 1bppD1 version, which is required to satisfy some limitation or other
(is this still the case, Ben?), like so:

 BITMAPFAMILYEX ID ULHome
 BEGIN
     BITMAP "ULHome1bppD1.bmp" BPP 1 DENSITY 1
     BITMAP "ULHome24bppD2.bmp" BPP 16 DENSITY 2
 END

 makes a bitmap family resource that is about 55K and looks just
gorgeous.

My mistake was that when I added the 24(16) bpp image version, I didn't
delete the 8bpp image that I had been using, which made the result well
outside the legal limits. However, CW9.0, rather than politely
mentioning the fact that the file or resource was too large, just
crashed and disappeared, which made it rather frustrating to discover
the root cause. Ben now assures us that the 9.2 version has added some
manners to the linker and now gives the appropriate error.

Thanks guys! 

  > -----Original Message-----
  > From: [EMAIL PROTECTED]
[mailto:bounce-palm-
  > [EMAIL PROTECTED] On Behalf Of Aaron Ardiri
  > Sent: Monday, August 11, 2003 6:38 AM
  > To: Palm Developer Forum
  > Subject: Re: Recomnd 16-Bit editor/converter?
  > 
  > > >there lies another issue, which, would definately be something
for
  > > >ben combee (metrowerks) to look into, and, handle more correctly
  > > >on their side. the resource output is a whopping 84096 bytes.
  > > >
  > > >yes, thats > 65505 (max limit set allowed for a resource). most
  > > >likely, rez is barfing within codewarrior because it cannot
handle
  > > >the large resource.
  > >
  > > Ah... you hit a bug in the V9 linker where it would crash if an
input
  > PRC
  > > file (or PilRC RO file) had a resource that was too larget.  This
is
  > fixed
  > > in 9.2 -- the linker doesn't crash, but instead warns you that
your
  > > resource is larger than supported by HotSync.  The CW debugger
  > supports
  > > downloading these "larger than 64K" resources, but you can't get
them
  > on to
  > > a device by normal means (HotSync, beaming, VFS).
  > 
  > :) good now it is documented *g*
  > 
  > > BTW, 65505 isn't the limit anymore... the OS 5 devices actually
have a
  > > slightly lower limit due to the larger size of the internal data
  > > structures.  I don't know the exact number, so I'm warning for
64000
  > bytes
  > > or more in a single resource to be safe.
  > 
  > i tend to stay away from > 32k these days.. the max resource i like
is
  > 32767 - keeps it within an int16 range and gives the OS 32k of extra
  > space for doing what it wants :)
  > 
  > of course, i had to update all my algorithms to work with data over
  > multi-ple resources when they are that size :)
  > 
  > ---
  > Aaron Ardiri                        [EMAIL PROTECTED]
  > CEO - CTO                                           +46 70 656 1143
  > Mobile Wizardry                      http://www.mobilewizardry.com/
  > 
  > 
  > --
  > For information on using the Palm Developer Forums, or to
unsubscribe,
  > please see http://www.palmos.com/dev/support/forums/


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

Reply via email to