Re: Memory profiler for PHP?

From: Date: Wed, 30 May 2007 10:35:20 +0000
Subject: Re: Memory profiler for PHP?
References: 1 2 3  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-7891@lists.php.net to get a copy of this message
... Gtk seems to clean itself up by simply calling unset(). In the main ... Hmm, I have a class extending a GtkDialog and I'm listening to the 'destroy'
signal. However, this is not sent when I just unset my derived class and the dialog window remains. I have to call $mydlg->destroy() myself Even more, I've added a __destruct function to my class (which is called when I unset my derived object) but php fails if I try to call parent::__destruct() with the error "Fatal error: Call to undefined method GtkDialog::__destruct()" So the gtk resources (and propably reffering php resources) are not being freed just by unsetting. Now the real test: I create a dialog and after I call destroy() manually and then I unset the object. I do this repeatedly and memory usage keeps increasing. So neither destroy() frees the memory. There is propably some refference of some object which is not dying. How can I ensure that there are no child widgets somewhere in my hierarchy that are still refferenced ? Kostas

« previous php.gtk.general (#7891) next »