Hi all!
I have a strange problem with FrmRemoveObject. Any ideas
would be greatly appreciated.
I use smth. like this for deleting form objects:
form = FrmGetActiveForm();
UInt16 objectCount = FrmGetNumberOfObjects(form); // works fine
for (int i = objectCount; i >= 1; i--)
{
FrmRemoveObject(&form, i); //POSE says that I read from
Memory Manager structures
}
How can that occur? When I calc the objectcount the form pointer is
fine, and then when I use it for removing it's not.
Debugging showed me, that the pointer hasn't changed when I
do a FrmGetFormPtr right befor the remove.
I hope anyone can halp me!!!
TIA & Best Regards, Gert
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/