Scott L. Johnson wrote in message <5911@palm-dev-forum>...
>
>> From: Richard M. Hartman [mailto:[EMAIL PROTECTED]]
>> What does the OS normally do for memory management
>> on label objects on forms?  Likewise, what must I do if
>> I am going to mess w/ the label text?
>
>When a form is initially loaded, the text pointer in every control (and
>label, etc) points to a string of bytes that is embedded inside the form
>object itself.  The entire form object itself is a single chunk in the
>dynamic heap.
>
>When you close a form, the OS basically just frees the single chunk that
>constitutes the form object.  It does not attempt to free any other memory
>chunks that may be referenced by the various pointers in controls and
labels
>within the form.

Great!  That was just the information I was looking for.  I don't need
to do nuthin' w/ the pointers that the labels started life with.

Ok, now for the tricky question: can I assume that this will always
be the case?

--
-Richad M. Hartman
[EMAIL PROTECTED]

186,000 mi/sec: not just a good idea, it's the LAW!




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to