after line "MemHandleFree(fldHnd);" try adding
"FldSetTextHandle((FieldPtr)FrmGetObjectPtr(frmPtr,
objectIndex),NULL);"

On 1/10/07, Ron <[EMAIL PROTECTED]> wrote:
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/



--
Best Regards, Dmitry Grinberg
Software Engineer, http://PalmPowerups.com
(847) 226 9295
AIM: DmitryGrinberg
MSN: [EMAIL PROTECTED]
ICQ: 165589894
Y! IM: dmitrygr2003

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

Reply via email to