Message-ID: <422670EA.6070701 at rftp.com> Date: Wed, 02 Mar 2005 18:05:30 -0800 From: Robert Roessler Organization: Robert's High-performance Software MIME-Version: 1.0 To: lablgtk at math.nagoya-u.ac.jp Subject: Relationship to OCaml GC Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit The following [dire] warning appears both in the LablGTK README as well as in the "OCaml-ized" GTK+ 2.0 tutorial: "IMPORTANT: Some Gtk data structures are allocated in the Caml heap, and there use in signals (Gtk functions internally cally callbacks) relies on their address being stable during a function call. For this reason automatic compaction is disabled in GtkMain. If you need it, you may use compaction through Gc.compact where it is safe (timeouts, other threads...), but do not enable automatic compaction." 1) I see the "disabling" in gtkMain... 2) is this still an issue? 3) if so, why the was Caml heap used for these structures rather than the malloc heap? 4) is this "non-compaction" not an issue in "real" usage of LablGTK? Or do all non-trivial apps end up forcing the compactions during the "safe" times? Robert Roessler robertr@rftp.com http://www.rftp.com