set/get_row_data

From: Date: Wed, 24 Apr 2002 14:07:35 +0000
Subject: set/get_row_data
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-1832@lists.php.net to get a copy of this message
Hello, I have again a problem, which is closer related to php than gtk I think : I use a GtkClist to show items, and associate with each item an array, linked using set_row_data. When I want to get the array back to modify it, I use get_row_data with the wanted item. This works, however I only get a copy of the array, and modifying it means I also have to do a set_row_data afterwards. This leads to huge memory leaks on a long period. Using & does not work because &$clist->get_rowdata($row) is invalid. Not using it leads to a copy. Anyone have a clue on that one ? Of course, a separate array of arrays is no solution, because using get_row_data is made to avoid it. Thanks for the coming help, Rolland Dudemaine

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