From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p9F9iK15007977 for ; Sat, 15 Oct 2011 11:44:20 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgEFANZUmU7VuiYS/2dsb2JhbABDhChOoXOBfIEFgW4BAQUMF1YQCQIaAiYCAiwrBogUpG2RRxKBHoVAgRQEpVI X-IronPort-AV: E=Sophos;i="4.69,350,1315173600"; d="scan'208";a="124234033" Received: from solaria.dimino.org ([213.186.38.18]) by mail1-smtp-roc.national.inria.fr with ESMTP; 15 Oct 2011 11:44:15 +0200 Received: from aurora (localhost.localdomain [127.0.0.1]) by solaria.dimino.org (Postfix) with ESMTP id 88D0880048; Sat, 15 Oct 2011 11:44:14 +0200 (CEST) Received: by aurora (Postfix, from userid 1000) id 56AE5405A4; Sat, 15 Oct 2011 11:44:27 +0200 (CEST) From: =?ISO-8859-1?Q?J=E9r=E9mie?= Dimino To: Kakadu Cc: Caml List Date: Sat, 15 Oct 2011 11:44:26 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.0.3- Message-ID: <1318671867.21057.84.camel@aurora> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id p9F9iK15007977 Subject: Re: [Caml-list] [C] call Caml method Hi, Le samedi 15 octobre 2011 à 13:30 +0400, Kakadu a écrit : > arg1 = Val_int(1); > // caml_callback2(meth, obj, arg1); // segfault in this line In your example arg1 should be a string, here it is an int. And the commented line is the right way to call the method. Cheers, -- Jérémie