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 XAA00899; Tue, 19 Nov 2002 23:16:12 +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 XAA00706 for ; Tue, 19 Nov 2002 23:16:11 +0100 (MET) Received: from mallaury.noc.nerim.net (mallaury.noc.nerim.net [62.4.17.82]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id gAJMGA121496 for ; Tue, 19 Nov 2002 23:16:10 +0100 (MET) Received: from karryall.dnsalias.org (karryall.dnsalias.org [62.4.18.180]) by mallaury.noc.nerim.net (Postfix) with ESMTP id E8AB862E2D; Tue, 19 Nov 2002 23:16:07 +0100 (CET) Received: by karryall.dnsalias.org (Postfix, from userid 500) id 9EA051A0022; Tue, 19 Nov 2002 23:16:08 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15834.47144.266678.397466@karryall.dnsalias.org> Date: Tue, 19 Nov 2002 23:16:08 +0100 From: Olivier Andrieu To: lars@cymfony.com Cc: caml-list@inria.fr Subject: Re: [Caml-list] Ocaml -> C -> Ocaml callback problem In-Reply-To: <15834.43801.889171.453764@gargle.gargle.HOWL> References: <15834.43801.889171.453764@gargle.gargle.HOWL> X-Mailer: VM 7.07 under Emacs 21.2.1 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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