With the color support in Palm OS 3.5, lists with greater than a certain
number of entries are susceptible to an intermittent bug where the list
display ends up blank.
The bug results from the following snippet from OS 3.5's List.c at line 510,
where it's trying to determine whether there is any
With the color support in Palm OS 3.5, lists with greater than a certain
number of entries are susceptible to an intermittent bug where the list
display ends up blank.
The bug results from the following snippet from OS 3.5's List.c at line 510,
... it fails because the multiply overflows the
Yes, I tried it on 4.0, and it no longer is a problem on that version. It's
also OK on 3.1 and 3.3.
Sorry about the snippet. I didn't think it would be a problem to post
something that small, because I *dare* anybody to make use of that code
without its surrounding content.
--
For
I have run into the same problem with large lists. To work around it, I
replaced LstSetSelection with:
LstSetSelection(lstPtr, recordNum);
// due to a bug in PalmOS 3.5, you cannot simply use LstSetSelection. If the
recordNum
// is roughly between 2970 and 5950, LstSetSelection erases the list
Thanks, Laurie. Very clever workaround
It was nice of them to optimize the LstScrollList logic so it wouldn't go
through the same logic as the LstDrawList logic. Your forcing it to scroll
more lines than are currently displayed was absolutely diabolical !
I think I'll use the