Memory leak problem
| From: | Cyrylus | Date: | Fri, 15 Nov 2002 12:50:44 +0000 |
| Subject: | Memory leak problem | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-2652@lists.php.net to get a copy of this message | ||
Hi,
There is some code:
$clist=&new GtkClist(7);
$clist->freeze();
for ($j=1;$j<11;$j++) {
for ($i=1;$i<10001;$i++) {
$row=array($i,$i,$i,$i,$i,$i,$i);
$clist->insert(0,$row);
}
$clist->clear();
}
$clist['tabela']->thaw();
Before run this code:
bash-2.05a$ ps aux | grep "php "| grep -v grep
USER VSZ RSS
cyrylus 11188 7568 php -q php-gtk.php
and after:
cyrylus 30836 27236 php -q php-gtk.php
What was happen with the memory? Am i doing anything wrong?
regards
Fabian