Re: delete-event of GtkWidget
- From: David Nečas (Yeti) <yeti physics muni cz>
- To: gtk-app-devel-list gnome org
- Subject: Re: delete-event of GtkWidget
- Date: Sat, 20 Jan 2007 16:29:42 +0100
On Sat, Jan 20, 2007 at 03:52:24PM +0100, Enrico Tröger wrote:
If you don't handle the delete event, the widget gets marked for
destroy. Later it gets the destroy event (at this point the widget is
no longer quite functional: think of it as a last cleanup thing).
Then it goes away. Nobody guarantees you that all those things happen
Yes, this is what one should expect and it is also written in the docs.
But at least in Debian the widget is still usable after the
You access memory that was released. If it was not reused
for anything else meanwhile, it still contains the data and
it may seem the object is still there. But this doen't mean
it is there. Try it under valgrind...
] [Thread Prev