From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 344ACBCAE for ; Fri, 24 Jun 2005 13:14:19 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j5OBEIfb017673 for ; Fri, 24 Jun 2005 13:14:18 +0200 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 NAA18621 for ; Fri, 24 Jun 2005 13:14:18 +0200 (MET DST) Received: from mail21.bluewin.ch (mail21.bluewin.ch [195.186.18.66]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j5OBEItb007822 for ; Fri, 24 Jun 2005 13:14:18 +0200 Received: from [10.0.1.2] (83.76.17.224) by mail21.bluewin.ch (Bluewin 7.2.060.1) id 42AD8E0B0023145D; Fri, 24 Jun 2005 11:14:17 +0000 In-Reply-To: <20050624104050.GA23041@furbychan.cocan.org> References: <20050623214733.GA30897@furbychan.cocan.org> <20050624104050.GA23041@furbychan.cocan.org> Mime-Version: 1.0 (Apple Message framework v730) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: <5CDC7A78-EE85-4C7E-A630-8CED51F8B614@epfl.ch> Cc: caml-list@inria.fr Content-Transfer-Encoding: quoted-printable From: =?ISO-8859-1?Q?Daniel_B=FCnzli?= Subject: Re: [Caml-list] Wrapping a callback to OCaml code from C Date: Fri, 24 Jun 2005 13:15:16 +0200 To: Richard Jones X-Mailer: Apple Mail (2.730) X-Miltered: at nez-perce with ID 42BBEB0A.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 42BBEB0A.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; epfl:01 caml-list:01 ocaml:01 camlparam:01 camlreturn:01 val:01 ...:98 wrote:01 functions:01 callback:02 callback:02 meantime:03 ecrit:04 daniel:04 daniel:04 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: Le 24 juin 05 =E0 12:40, Richard Jones a =E9crit : > On Thu, Jun 23, 2005 at 10:47:33PM +0100, Richard Jones wrote: > [...] > > There was quite a delay in this posting appearing. In the meantime I > think I've fixed the problem by adding CAMLparam0 .. CAMLlocal3 .. > CAMLreturn0 around the callback wrapper function. I would like to understand why this is needed. Did you allocate =20 something with the gc in your Val_obj functions ? Daniel