English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] lablgtk2 & GC compact
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-09-03 (12:33)
From: Shivkumar Chandrasekaran <shiv@e...>
Subject: [Caml-list] lablgtk2 & GC compact

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.



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