At 3:26 PM +0100 17-04-00, Dave Lippincott wrote:
>Do I need to free the memory associated to a CharPtr if its assigned to the
>form title? Or does the form free the title memory for me?
You have to free the pointer yourself, or otherwise manage the memory. The
form code does not make a special effort to free the title object.
Normally, this is not a problem because the actual memory for the title is
in the same chunk as the rest of the form, so it just goes away when the
form is freed. But if you change this with FrmSetTitle, then you have to
deal with cleaning up. (But on the other hand if you call FrmSetTitle to
change the title to a string constant in your app, then you better not try
to free it!)
--Bob
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html