Greetings all,
In my program I create textboxes dynamically, when I turn the page I have to 
remove them. For this I use FrmRemoveObject(). However I get memory leaks when 
closing the application if I type anything any textbox and turn the the page. I 
figured it has something to do with FrmRemoveObject.
If I don't type anything into the textbox and turn the page, there will be no 
memory leaks what so ever.
Any help will be much appreciated.

Here is some code:
------------------------
void DePopulatePage()
{
        UInt16 i;
        FormPtr frmPtr;
        int j;
                
        frmPtr = FrmGetFormPtr(MainForm);
        
        for (i = initID; i < lastID; i++)
        {
                FrmHideObject(frmPtr,FrmGetObjectIndex(frmPtr, i));
                FrmRemoveObject(&frmPtr,FrmGetObjectIndex(frmPtr, i));
        }
...
--------------------

I have to remove the object as my program may deal with a lot of pages with 
objects on each.

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

Reply via email to