The docs are pretty clear on this: the function doesn't copy the string you pass, so you need to manage the memory yourself, freeing it when you know it is no longer needed. The docs don't say whether you need to set the label to NULL in order to keep it from being freed twice, but that's what I'd do if I were making the control use a label I allocated myself. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palm.com/devzone/mailinglists.html
- CtlSetLabel & memory management Richard M. Hartman
- RE: CtlSetLabel & memory management Peter Epstein
- RE: CtlSetLabel & memory management Scott L. Johnson
- Re: CtlSetLabel & memory management Richard M. Hartman
- Re: CtlSetLabel & memory management Richard M. Hartman
- Re: CtlSetLabel & memory management Richard Hartman
- RE: CtlSetLabel & memory management Scott L. Johnson
- RE: CtlSetLabel & memory management Aaron Ardiri
- RE: CtlSetLabel & memory management Hal Mueller
- RE: CtlSetLabel & memory management Roger Chaplin
- RE: CtlSetLabel & memory management Hal Mueller
