Delivered-To: garrigue at math.nagoya-u.ac.jp Authentication-Results: mailhost.math.nagoya-u.ac.jp sender=lablgtk-bounces at yquem.inria.fr; domainkey=neutral (no query protocol specified; no policy for yquem.inria.fr) Delivered-To: Lablgtk at yquem.inria.fr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:x-mailer:mime-version:content-type :content-transfer-encoding; bh=nNZ2ir+bElTIhkQuntZKfG6m2Bi89nLD3BiMj592JWM=; b=yDVKqicNQ64V7bQlHwYPiYR5y8C6DwtGoUgx7D7uybB4QNH8DG6VUmyih9T5iNEuBs uyUb8K/exlsaGaSjsgzgqZhxKzhpEcvCkLWEYPa6GQT4bkzCrx75oLVzcdKMRONdGHc8 1ZKYh6tmID9/YriFXyeC8S7hv9dtO2w5NXMyw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:x-mailer:mime-version:content-type :content-transfer-encoding; b=VvFLaUTEzWE+wtLtsjVbDxgNw+suszyC3u94mDJQa4WVUd+BuuZfrlhHYgFTATqreU VL+qdNbWK3zOe46AhoEN6j+fQ3VGvrYG6KFdSStL7O3mDtofwFOO0Tap7KuOKCqWOkle 5hBFzX4Y+9PFonb9ewNQq8UH0n+eVB6NOvYyU= Date: Mon, 13 Sep 2010 20:56:58 -0500 From: Peter Groves To: Lablgtk at yquem.inria.fr Message-Id: <20100913205658.026ac951.pdgroves at gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [Lablgtk] segfault when reattaching a tree model to a tree view Status: U Hi, I'm trying to speed up a tree view using the hints in the tutorial found here: http://plus.kaist.ac.kr/~shoh/ocaml/lablgtk2/treeview-tutorial/ch03s03.html#sec-treestore-adding-many-rows My problem is slightly different than the one described in the tutorial, however. I'm not replacing rows in the table but just changing the values in a single column. The column is booleans in the model and "cell_renderer_toggle" in the view, which basically means that one of the columns in the table contains a checkbox for every row. The slow performance occurs when I try to set the values of all the checkboxes in a batch. I have also tried disabling sorting, but that did not seem to make any difference. So now I'm trying to detach the model from the view while I do the batch update, then reattach them. I'm able to detach the model from the view using: - self.treeView#set_model None; - Then I update the model by using an 'iter' over all the rows in the model. - Finally, I try to replace the model with: self.treeView#set_model (Some(self.treeModel#coerce)); It segFaults on the last step. Are there any suggestions for what might be going wrong or any way to debug this? Thanks, Peter _______________________________________________ Lablgtk mailing list Lablgtk@yquem.inria.fr http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk