My understanding is that when the form object is instantiated from the
resoure, it allocates a chunk of memory for the form and all its objects,
including the form title. That means the pointer you get back when you call
FrmGetTitle is just part of a larger chunk of memory, and you should not
deallocate it, since the form will do that whether you've changed the title
to point elsewhere or not. You'll still need to deallocate the memory you
allocate for the title if you use FrmSetTitle.
You can avoid all memory allocation issues if you use FrmCopyTitle, but you
need to make sure the title fits in the space available, so the title you
specify in the resource will set the max title length.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html