Hi Nicolas,
The FrmRemoveObject function removes an object from a form ,but the
function doesn't free memory referenced by the object (if any) but it does
shrink the form chunk. For best efficiency when removing items from forms,
remove items in order of decreasing index values, beginning with the item
having the highest index value. When removing items from a form, you need to
be mindful of the same concerns as when adding items to the form pointer and
pointers to controls on the form may change as a result of any call that
moves the form structure in memory.
Please do look into the Palm Companion Guide for more reference
Thanks,
Arvind
Developers' Nation DTS Engineer
Developers' Nation provides Palm OS Developer 's Support with a guaranteed
response time. Go to http://www.devnation.net
"Nicolas Raitman" <[EMAIL PROTECTED]> wrote in message
news:52321@palm-dev-forum...
>
> Hi to all, I am having a problem when I try to use this funtion.
>
> FormPtr frmP = FrmGetActiveForm();
> FormPtr * frmPP = &frmP;
>
> FrmRemoveObject ( frmPP, FrmGetObjectIndex(frmP, 7000));
>
> The error I get when I execute the program is a memory manager error. Any
> ideas or examples
> on how to use the function? Just in case, the id exists since I created
the
> control dynamically. Can
> this affect the function, if I created the control dynamically?
> Thanks,
> Nicolas
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/