>label is a stack-based (local) variable in the function UpdateControl.  As
>soon as you exit UpdateControl, it's contents may change.  This is not a
>good way to change the label of a control which will probably outlive the
>function call.

In fact, if you read the docs for CtlSetLabel, they are very clear: 
the string has to exist for the lifetime of the control.

Regards,
Steve Mann
-- 
-------------------------------------------
Creative Digital Publishing Inc.
1315 Palm Street, San Luis Obispo, CA 93401-3117
-------------------------------------------
805.784.9461              805.784.9462 (fax)
[EMAIL PROTECTED]       http://www.cdpubs.com

-- 
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