> From: Neelesh Chitari [mailto:[EMAIL PROTECTED]]
> The number of visible items in the list is set to three.
> So when number of records are greater than three it shows a
> down arrow
So far so good...
> But when that down arrow is clicked I get an error saying
> "preformed BUS ERROR"
That means the list code tried to access some memory that wasn't valid for
it to access. In this case, it just tries to use the strings you supplied
to LstSetListChoices. Note that the list doesn't make an internal copy of
those strings, but only keeps the pointer you pass. Your own code needs to
keep all that data alive for the lifetime of the list object. I'd guess
that this isn't happening.
Or, if your string array (and strings) _are_ staying valid for the lifetime
of the list, then make sure that the count you pass to LstSetListChoices
(the last arg) matches the string data.
Can you post your code in the area of LstSetListChoices?
> Do I myself have to write code to handle scrolling of the list
> if I am populating it at runtime ?
Depends. If it's a popup list, it handles the little arrows and the hard
scroll buttons. But if it's a list embedded in a form, it handles only the
little arrows, and your own code needs to handle the hard scroll buttons and
call LstScrollList, if you want the hard buttons to work as the user
expects. (But this isn't your problem in this case, just a tip.)
-slj-
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/