hi. i would like to know what does these 2 fatal alert
means

1) chunk under-locked

2) object not in form

are these 2 errors most probably related to dynamic
creation of field? either one of these error will
appear when i tried to access the form that contain
this field. the error will occur occassionally.

are there anything wrong with this coding? 
typedef char iSubmenu[100];
iSubmenu array[MAXSIZE];

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

        newText3H = MemHandleNew(100);
        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) {
                MemHandleUnlock(oldTxtH);
                //MemHandleFree(oldTxtH);
        }*/

thanks. hope that you are able to solve this problems


__________________________________________________
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