At 03:58 AM 8/12/2004, you wrote:
So FrmSetTitle() is safer as it makes no assumptions about the length of the
existing title. Would I then have to free the pointer I pass to this
FrmSetTitle()? Or would that be done automatically when the form closes?

If you allocated the buffer using a dynamic memory function, you would need to free it when the form closes. If the buffer was a global variable, then freeing it wouldn't be appropriate -- it's up to you to manage that memory.



-- Ben Combee, DTS technical lead, PalmSource, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Palm OS Dev Fourm Archives: http://news.palmos.com/read/all_forums/



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

Reply via email to