Re: memory allocation




Chris Phelps wrote:

> You *can* set the parent yourself, but that isnt necessary. As long as
> the table is in the window, anything you add to the table will be "in"
> the window as well.
>
> Later,
> Chris
>
> On Mon, 2001-09-03 at 20:39, Deekshit Mantampady wrote:
> > Hi,
> >
> >       Will the following work?
> >
> >  Each time I create a widget I will set the parent of the widget as the window on which I am placing the widget. I will do
> > a gtk_destroy_object() on window.
> >
> >  In the above case I am using table to place the widget.
> >
> >
> > Regards
> > Deekshit M
> --
>
> http://glimmer.sourceforge.net - My pet project
> http://uberhackers.dhs.org - My personal website
>
> ./configure --prefix=/dev/mocha --enable-caffeine



Hi,

     Thank you for your reply. Finally my conclusion is. "If I do a gtk_add_container(table, window).  then
gtk_destroy_object(window) is enough to de-allocate all the memory allocated to the objects, provided these objects  are in the
table". Is it right?


Deekshit M


----------------------------------------------------------------------------------------------------------------------
Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and
is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:mailadmin wipro com and delete this mail
from your records.
----------------------------------------------------------------------------------------------------------------------



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]