> From: Timothy Astle [mailto:[EMAIL PROTECTED]]
> I'm using a callback to populate a list from a database.
> whenever I select an item from the list, it gives me a NULL
> error or a Low Mem error.
> The following is a snippet from my event handler
>
> case lstSelectEvent:
You need to handle popSelectEvent, not lstSelectEvent.
> tblPvnoCurRecord = LstGetSelection( lst );
> LstGetSelectionText( lst, tblPvnoCurRecord );
LstGetSelectionText won't work if you use a draw callback and never supply
actual strings to LstSetListChoices. So you probably need to re-fetch the
selected record and format the needed data into a separate buffer, and then
pass that buffer to CtlSetLabel.
Make sure to use your favorite debugger to narrow down the point of crashes
like this. That would show that your lstSelectEvent handler was never even
getting called. (I think.)
-slj-
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/