Re: segfault when reattaching a tree model to a tree view
Jacques Garrigue <[email protected]> Wed, 15 Sep 2010 13:24:37 +0900
| Newsgroups | gmane.comp.lang.ocaml.lib.gtk |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Sep 15, 2010 at 8:53 AM, Peter Groves <[email protected]> wrote: > The newest development is that the segfault is avoided if the treeview > is not displayed in a scrolled_window. However, there are several > hundred rows to be displayed, so this isn't a long term option. Also, > when it's not in the scrolled_window, the entire user interface is much > much slower (I assume because all rows are being displayed, even if > they are off screen). So now I'm considering just trying to find > another way to display this table, which will probably just mean > implementing my own less-pretty but more stable version of treeview. This is strange. At least, using the newest version of lablgtk2 (subversion repository) with Gtk 2.16.6, I see no such problem. (I just tried to wrap a scrolled_window around the tree_model.ml example, but no problem appears.) Can you try the enclosed code, and see whether it segfaults when you press "Dump data" twice? (Your code being not self-contained, I cannot test it). Jacques _______________________________________________ Lablgtk mailing list [email protected] http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk
tree_model.ml
(application/octet-stream, 6.6 KB) - not displayed