> From: Owen Flagel [mailto:[EMAIL PROTECTED]]
> I'm drawing a list resource using LstSetListChoice(,NULL,) and then
> using a draw function LstSetDrawFunction(,,).
> when I select an item from the list I get the Error:
> Just written to memory location zero(NULL).
> The list object is being used with a pop-up trigger.
When you use this drawing technique, you also need to handle the popSelect
event to run your own logic to set the desired label into the popup trigger.
Then return true from the popSelect handler to prevent the OS from trying to
do its default behavior...
...which is to just grab the text for the selected item from the array of
strings that you originally passed to LstSetListChoices. But in this case,
you passed NULL for that, and the OS doesn't know any better, so it crashes
when trying to use that NULL pointer.
-slj-
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/