Thanks. Hum? I'm setting the label and I'm returning a  handled = 
true in a popSlect event, but the  problem still persists. Any 
further ideas where I could be going wrong here.

I was using LstGetSelection(LIstType *listP) and I thought this might 
be causing the problem. However,  I still get the error when I set 
everything manually and try selecting from the drawn list.


>  > 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/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to