From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA32471; Fri, 3 Sep 2004 14:33:04 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA32450 for ; Fri, 3 Sep 2004 14:33:03 +0200 (MET DST) Received: from mail.ece.ucsb.edu (mail.ece.ucsb.edu [128.111.56.51]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id i83CX0uA015280 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Fri, 3 Sep 2004 14:33:02 +0200 Received: from [192.168.0.204] (ip68-6-103-180.sb.sd.cox.net [68.6.103.180]) (authenticated bits=0) by mail.ece.ucsb.edu (8.13.1/8.13.0) with ESMTP id i83CWvtZ004305 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 3 Sep 2004 05:32:57 -0700 (PDT) Message-ID: <41386479.7000807@ece.ucsb.edu> Date: Fri, 03 Sep 2004 05:32:57 -0700 From: Shivkumar Chandrasekaran User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040818) X-Accept-Language: en-us, en MIME-Version: 1.0 To: caml-list@pauillac.inria.fr Subject: [Caml-list] lablgtk2 & GC compact X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 4138647D.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; shivkumar:01 shiv:01 lablgtk:01 lablgtk:01 callbacks:01 callback:01 --shiv--:01 manually:03 overhead:03 overhead:03 soohyoung:03 ece:96 seems:05 tutorial:05 max:06 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, I read in SooHyoung Oh's excellent lablgtk2 tutorial that automatic compaction was turned off in lablgtk2, and that to get compaction we must call Gc.compact manually inside the callbacks. Is this true? If so, how do I turn "automatic compaction" back on once I enter the callback, and off when I exit it? The manual seems to suggest |Gc.set { (Gc.get()) with Gc.max_overhead = 500 } as the way to turn it on to automatic, and||| || |Gc.set { (Gc.get()) with Gc.max_overhead = |||||||1000000| } the way to turn it off again. Is this the right thing to do with lablgtk2? Thanks for any help. --shiv-- | ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners