You might want to use FrmHideObject and FrmShowObject instead. If I read
correctly, FrmRemoveObject may return a different pointer to your form, that
might be causing your problems.
Regards,
Steve
-----Original Message-----
From: vikas varshney [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 15, 2000 10:55 AM
To: Palm Developer Forum
Subject: FrmRemoveObject !!!
Hello!
I am trying to remove 2 labels from a form in run time. I remove these
objects one by one.
Just more details: I display a form with 2 labels and one button. Now on
ctlSelectEvent I want to remove both the labels. In the
event handler I am getting the FormPtr using FrmGetActiveForm() function and
after that I get the Object Index( label) and call this
function FrmRemoveObject(..), it pops up a diaglog box saying memory manager
error with "continue" and "debub" options. If I say
continue, it continues and eventually it does not have any problem in
subsequent calls and application runs perfect. I am not sure
what wrong I am doing here?
Help!!!!
Thanks
Vikas Varshney
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/