>   So if I add a button dynamically do I also need to free the
>allocated memory as well when the form closes?--or will the OS
>take care of it for me.
FrmDeleteForm basically just deletes the chunk containing the form.  If you
allocate the button within that chunk then that button will happen to get
freed.  If you allocate the button in a separate chunk, then you'll need to
track the chunk and free it at the right time.

To find out more, read FrmDeleteForm.


-Roger


Reply via email to