It appears that you are not allocating space for the CharPtr, nor for the
ControlPtr. Either use a char array and point to it, or allocate using
MemPtrNew. Point the ControlPtr at a ControlType.
Regards,
Steve
> -----Original Message-----
> From: John Spicer [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 16, 2000 11:37 PM
> To: Palm Developer Forum
> Subject: Re: Debugging using Emulator (Mac)
>
>
> Can someone take a look at this chunk of code and tell me why
> I get this error:
>
> ListPtr lst;
> ControlPtr ctl;
> CharPtr name;
> FieldPtr fld;
>
>
> lst = (ListPtr) GetObjectPtr (Configure1List_3List);
> LstSetSelection (lst, 1);
> name = LstGetSelectionText (lst, 1);
> ctl = (ControlPtr) GetObjectPtr (Configure1P_3PopTrigger);
> CtlSetLabel (ctl, name);
>
>
> The emulator gives me the "has just read directly from an unlocked
> memory chunk"
>
> I've pretty much copied this code from the sample applications, and I
> can't figure out what I'm doing wrong.
> ____________________________________________________
> John Spicer
> H: (780) 903-6224
> ____________________________________________________
> <mailto:[EMAIL PROTECTED]>
> ____________________________________________________
> Author: MakeItGrow, MacLotto, TiCalendar, MacBillman,
> Image-In Engine, TiCalendar, DrugMaster, MacDirectPay
> If you want to work on your computer, buy an IBM.
> If you want to DO work on your computer, buy a Mac.
> ____________________________________________________
>
> --
> For information on using the Palm Developer Forums, or to
> unsubscribe, please see http://www.palm.com/devzone/mailinglists.html
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html