I have had problems in this area as well. Using gtk# & mono, if I use gtk_tree_store_clear, then I cannot add more rows. I haven't really looked into it yet. I just removed rows one at a time until they are all gone. Not nice, but it will do for now.
Kim On Wed, 2006-02-22 at 17:07 +0100, Christian Neumair wrote: > Am Donnerstag, den 16.02.2006, 14:18 -0500 schrieb devel: > > I'm having problems with clearing a treestore and a liststore. > > gtk_list_store_clear() and gtk_tree_store_clear() are clearing the > > lists visually (can see this in the GUI, obviously), but appear to be > > leaving "copies" behind and my memory is being sucked dry. I was going > > to try a memory leak tester to help me out, but I'm currently > > developing this app for windows and can't seem to find a tester for > > windows. > > I suppose you're using > > gtk_list_store_set (store, &iter, STR_COLUMN, g_strdup (mystr), -1); > > Please don't dup the data yourself, GTK+ will do this for you based on > the column type by calling the appropriate duplication routines. If you > want to insert complex data, either use GObjects (these will be unrefed > when they're removed from the model), or use plain structs and subclass > G_TYPE_BOXED. > > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list