From: Olivier Andrieu MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <16496.7989.311915.228824 at karryall.dnsalias.org> Date: Sun, 4 Apr 2004 16:44:05 +0200 To: Maxence Guesdon Cc: lablgtk at kaba.or.jp Subject: Re: Segfault using tree_store In-Reply-To: <20040402234842.0142727d at haddock.max.fr> References: <20040402234842.0142727d at haddock.max.fr> Salut Maxence, Maxence Guesdon [Friday 2 April 2004] : > i got a segfault when using the tree_store to store and retrieve > ocaml data. I'm not too sure about the right way to do this. The > program in attachement can be compiled with > ocamlc -o bug.x -I +lablgtk2 lablgtk.cma tdl.cma bug.ml > > then ./bug.x creates a window. When a row is activated (by double click) > the program tries to retrieve the data associated to the row in the > "data" column of the store and crashes. Aïe, sorry, my bad : the way I implemented this was actually quite broken. I didn't read the gtktree* source carefully enough. The CVS version should work now. Thanks for testing this ! -- Olivier