LionScribe thank you for your reply. I have tried to do as you say but I get a 
SysFatalAlert as follows:
-------------------
TestGen (unknown version) called SysFatalAlert with the message: "MemoryMgr.c, 
Line:4372, Non-word-aligned handle".
-------------------

Here is the code:
-------------------
while (index)
{
        index--;
        objectID = FrmGetObjectId(frmPtr, index);
        if (objectID >= initID&&objectID <= lastID)
        {
                
                FrmHideObject(frmPtr,index);
                // delete any object memory here
                UInt16 objectIndex;
                objectIndex = FrmGetObjectIndex(frmPtr, objectID);
                
                if(FrmGetObjectType(frmPtr, objectIndex) == frmFieldObj){
                        MemHandle fldHnd = 
FldGetTextHandle((FieldPtr)FrmGetObjectPtr(frmPtr, objectIndex));
                        if(fldHnd)
                                MemHandleFree(fldHnd);
                }
                
        FrmRemoveObject(&frmPtr,index);
        }
}
---------------

Once again, thanks for your help
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to