Although this gets rid of the error messages, it does not eliminate the
label corruption problem.

-Ken

> ----------
> From:         Kevin O'Keefe[SMTP:[EMAIL PROTECTED]]
> Reply To:     Palm Developer Forum
> Sent:         Friday, September 15, 2000 11:33 AM
> To:   Palm Developer Forum
> Subject:      RE: Corruption of text in button resource
> 
> Make sure you remove your dnymanically created objects in the reverse
> order
> from which you added them - removing the last one first, etc.
> 
> > -----Original Message-----
> > From: Nesse, Rustin [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, September 14, 2000 12:42 PM
> > To: Palm Developer Forum
> > Subject: RE: Corruption of text in button resource
> > 
> > 
> > Intriguing application...yeah, if anything were to get hit by the
> > PrvFixupPointers bug, it would be something like that.  Also, 
> > sometimes
> > if you're loading text into labels from some dynamically modified
> > string, you'd obviously run into that kind of corruption.  In your
> > frmUpdateEvent handler, make sure you redraw whatever is currently 
> > on the screen, the whole object index list, etc.  You'll want to fix
> > up the labels, especially, so use CtlSetLabel judiciously.  Make sure
> > that you CtlHideControl on which you redraw the label, use 
> > CtlSetLabel,
> > then CtlShowControl in that order for best results. 
> > 
> > -Rus 
> > >
> > >OK. I'm dynamically creating up to 40 gadgets, doing hit testing on 
> > >the gadget bounds,then removing all the dyn gadgets with one loop 
> > >using  FrmHideObject and FrmRemoveObject. The sequence then repeats. 
> > >I'll try the refresh approach. Any other ideas based on what I've 
> > >described?
> > >Thanks for your responses,
> > >Owen
> > >
> > >>It's very rare, but it also happens when you DON'T use 
> > >FrmRemoveObject.
> > >>I've had it happen to me...I just refreshed the form or 
> > >buttons every so
> > >>often, and the problem went away.  
> > 
> > -- 
> > 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/
> 

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

Reply via email to