> When I change the label on a popup trigger with this:
> {
> CharPtr s = MemPtrNew(sizeof(char[MAX_ITEM_PRICE_SIZE]));
> MemSet(s,MAX_ITEM_PRICE_SIZE,0);
> s = StrIToA(s,qty);
> CtlSetLabel(GetObjectPtr(ItemEditQtyPopTrigger),s);
> MemPtrFree(s);
> }
> and then try to use the popup trigger on the form, I get an error reading
> from an unallocated chunk.
>
> What am I doing wrong?
you are freeing the chunk containing the label text.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/