On Fri, May 18, 2001, Kendrew Lau wrote:
> Yet a bug occurs to me when it opens a large image (I tried the
> book "Thinking in Java" using 8-bit bpp). The handheld simply
> crashes and needs reset.
You never said how big the images are, but I guess you have run
into the problem with images that are larger than 64k (before
they have been compressed).
Such images are not according to the spec (i.e. the parser is
creating a "corrupt" database) and since the size is put in a
UInt16 it will "wrap around" for values larger than 64k, fooling
the viewer into thinking that the images are much smaller.
You added some code that attempts to detect the symptom of this
problem, but I rather see that the bug itself is fixed, i.e. the
parser should not include images larger than 64k.
Is anyone taking a closer look at this problem in the parser?
Bill? Dirk? Chris?
/Mike