while testing out my application i received this
error: MemoryMgr.c, Line:5281,
Chunk under-locked.  i guess it could be due to the
dynamic editable text field that i have created.

below are the codes:
        FldNewField ((VoidPtr) &newForm, SubmenuField, MenuX,
MenuY, 155, 50, 0, 100 , true, true, false, true,
leftAlign, true, false, false);                                 
        fldptr=(FieldPtr)GetObjectPtr(SubmenuField);

        newText3H = MemHandleNew(200);
        msg2 = MemHandleLock(newText3H);

        StrCopy (msg2, "");
        StrCopy(msg2,array[counter]);

        /* get the old text handle */
        oldTxtH = FldGetTextHandle(fldptr);

        /* change the text and update the display */
        FldSetTextHandle(fldptr, newText3H);
        FldDrawField(fldptr);

        MemHandleUnlock(newText3H);
        /*MemHandleFree(newText3H);*/

        /* free the old text handle */
        if (oldTxtH != NULL) {
                //MemHandleFree(oldTxtH);
                MemHandleUnlock(newText3H);
                //MemHandleFree(newText3H);
        }

any one has any ideas of how to solve it? 

i would also like to know if there is any other way
that i can pass data into a editable field.

thanks and best regards
junyan

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

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