I am having a strange problem with LstSetSelection. I use this function to
display portions of a database in a list. It works properly in PalmOS 3.0,
but exhibits a strange behaviour in PalmOS 3.5. I use a list draw callback
function to display the appropriate data from the database in the list.
In OS 3.5, it works properly for the first 2970 (approximately) items in the
database. For the next 2970 (approximately) items in the database it
displays a blank screen. For the remainder of the items (about 8500 total)
it works properly again. When it fails, the callback function seems to work
properly. When stepping throught the execution, you can see all of the data
being presented properly as LstSetSelection invokes the callback function.
Before LstSetSelection finishes execution, however, it erases all of the
list. I have convinced myself that the problem is not in the callback
function, since I can scroll manually to the same items and it works
properly (LstScrollList uses the same callback function).
I have tried redrawing the list with LstDrawList after LstSetSelection has
erased it. LstDrawList exhibits exactly the same behavior -- the callback
routine draws all of the items properly, but LstDrawList erases them before
it finishes execution.
I'm stuck!
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/