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 AAA01932; Wed, 20 Nov 2002 00:00:58 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id AAA01930 for ; Wed, 20 Nov 2002 00:00:57 +0100 (MET) Received: from lothlorien.cymfony.com (fw-out.cymfony.com [205.232.186.90]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id gAJN0u122402 for ; Wed, 20 Nov 2002 00:00:56 +0100 (MET) Received: (from lars@localhost) by lothlorien.cymfony.com (8.11.6/8.11.6) id gAJMxGO03157; Tue, 19 Nov 2002 17:59:16 -0500 From: Lars Nilsson MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15834.49731.879928.494330@gargle.gargle.HOWL> Date: Tue, 19 Nov 2002 17:59:15 -0500 To: Olivier Andrieu Cc: caml-list@inria.fr Subject: Re: [Caml-list] Ocaml -> C -> Ocaml callback problem In-Reply-To: <15834.47144.266678.397466@karryall.dnsalias.org> References: <15834.43801.889171.453764@gargle.gargle.HOWL> <15834.47144.266678.397466@karryall.dnsalias.org> X-Mailer: VM 7.00 under 21.5 (beta4) "bamboo" XEmacs Lucid Reply-To: lars@cymfony.com Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Thank you Olivier, That seemed to solve my problem. Much appreciated. Now on to the real deal. Regards, Lars Nilsson Olivier Andrieu writes: > You're using CAMLparam macros to register the arguments in the GC but > then you're not using CAMLreturn. > > > CAMLprim value helper_doit() > > { > > CAMLparam0(); > > > > callback2(closure_fun, copy_string("foo"), closure_data); > > > CAMLreturn(Val_unit); > > > } > > (same thing for the other function). > > -- > Olivier ------------------- 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