From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 4EBE7BBE1 for ; Sat, 7 Oct 2006 17:16:52 +0200 (CEST) Received: from furbychan.cocan.org (furbychan.cocan.org [80.68.91.176]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id k97FGoO8012883 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Sat, 7 Oct 2006 17:16:52 +0200 Received: from rich by furbychan.cocan.org with local (Exim 3.35 #1 (Debian)) id 1GWDus-0003Ex-00; Sat, 07 Oct 2006 16:16:42 +0100 Date: Sat, 7 Oct 2006 16:16:42 +0100 To: micha Cc: caml-list@inria.fr Subject: Re: [Caml-list] callback question Message-ID: <20061007151642.GA12449@furbychan.cocan.org> References: <20061007170848.2cc160a2@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061007170848.2cc160a2@localhost> User-Agent: Mutt/1.5.9i From: Richard Jones X-Miltered: at discorde with ID 4527C4E2.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 2006:98 blog:98 blog:98 wrote:01 caml-list:01 functions:01 caml:02 callback:02 callback:02 seems:03 manual:06 marketing:93 marketing:93 On Sat, Oct 07, 2006 at 05:08:48PM +0200, micha wrote: > I'm storing an ocaml object in a c++ class (the class calls methods of > the ocaml class). To do that I register the object as described for > callback functions in the manual and use it with caml_named_value. > It works perfect so it seems to be the right way. (?) > But does the gc ever remove the object (since it is registered as a > callback)? You don't need to post questions twice. Why don't you call Gc.compact () and see if the object gets freed? Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Internet Marketing and AdWords courses - http://merjis.com/courses - NEW! Merjis blog - http://blog.merjis.com - NEW!