What line does this occur on?  Typically that pinpoints the problem rather 
nicely.

Also, you don't check to see if LstNewList succeeded or failed.  You should 
definitely do this if you're having problems.
--
Tim Kostka

"salil khanwalkar" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hi,
> My code for creating a dynamic list....
>
> Boolean handled = false;
> FormPtr frmP;
> ListType *list;
> char *c = "a" ;
> Int16 stringCount = 15;
> MemHandle memList;
> MemPtr * memP;
>
> case MainShowButton :
> LstNewList((void**)&frmP,1,10,10,50,50,stdFont,3,2);
> list = (ListType*)GetObjectPtr((UInt16)1);
> memList = SysFormPointerArrayToStrings(c,stringCount);
> memP = (MemPtr*)MemHandleLock(memList); 
> LstSetListChoices(list,(Char**)memList,15);
> LstPopupList(list);
> MemPtrUnlock(memP);
> handled  = true;
> break;
>
>
> I get this error...how to handle it?
> Starter(1.0) just read from memeory location 0X80001848, causing a bus 
> error.
>
> What is wrong with my code
>
> Regards,
> Salil.
> 



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

Reply via email to