When I pass NULL as the choice array, I always use a custom draw function
set by LstSetDrawFunction.  The list may be trying to access your label
names before you allocate memory to xyz.

----- Original Message -----
From: "Nitin Nangia" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[email protected]>
Sent: Monday, August 28, 2000 8:06 AM
Subject: Problem with RunTime Manipluation of Lists.


> Hi All,
>
> i have a small problem........
>
> I have a list(with say 3 visible elements) on my form.
> I insert 'n' number of new text items(i do not add any
> text,i just leave the text items blank ) in the list
> where n>3 so that i get a scroll arrow automatically.
>
> Now in my program i have a
>
> char **xyz;
> each xyz[ ] points to a null terminated string
>
> Now i fire the following statements :
>
> f1=FrmGetActiveForm();
> wIDList=FrmGetObjectIndex(f1,DetailsSelectionListList);
> ListPtr pList=(ListPtr)FrmGetObjectPtr(f1,wIDList);
> LstSetListChoices(pList,xyz,i); file://i here is the number
> of strings
> LstDrawList(pList);
>
> The strings are getting added in the list but when i
> tap the scroll down arrow on the list i get a prompt
> saying "Trying to read from unallocated memory chunk"
>
> I get the same prompt if i select the first visible
> element and use a
>
> pSMeeting=LstGetSelectionText(pList,uIndex);
>
>
> What am i doing wrong ?
>
> any clues ?
>
> Thanks
> Nitin
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Mail - Free email you can access from anywhere!
> http://mail.yahoo.com/
>
> --
> 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 ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to