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 pAOEpLXX029360 for ; Thu, 24 Nov 2011 15:51:21 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ak4FAIdZzk7VuiYS/2dsb2JhbABDhDJQozyCNIEFgXIBAQUMF1YQCQIaAiYCAiwrBi2HbaMKkW4SgR6IHIEWBJAslio X-IronPort-AV: E=Sophos;i="4.69,565,1315173600"; d="scan'208";a="132469293" Received: from solaria.dimino.org ([213.186.38.18]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 24 Nov 2011 15:51:00 +0100 Received: from arrakis (localhost.localdomain [127.0.0.1]) by solaria.dimino.org (Postfix) with ESMTP id 3D9BC80089; Thu, 24 Nov 2011 15:51:00 +0100 (CET) Received: by arrakis (Postfix, from userid 1000) id 7C21411F280; Thu, 24 Nov 2011 15:50:58 +0100 (CET) Message-ID: <1322146258.32530.5.camel@arrakis> From: =?ISO-8859-1?Q?J=E9r=E9mie?= Dimino To: Kakadu Cc: caml-list@inria.fr Date: Thu, 24 Nov 2011 15:50:58 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.0.3-2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id pAOEpLXX029360 Subject: Re: [Caml-list] Re: lablqt = OCaml + qt Hi, Le jeudi 24 novembre 2011 à 18:04 +0400, Kakadu a écrit : > Bad news: it seems that lablqt is in decadance. I'm still planning to > implement inheritance (described here), but there are some problems > with proof-of-concept app. It shows a widget and after pressing any > key it crashes while calling caml_send0 function (autogenerated > function for calling methods of ocaml objects. see ocaml sources) In classes.ml, lines 23, you expect x0 to be an OCaml object (of type qKeyEvent), but in AA.cpp, line 28, you call the keyPressEvent method with argument _ev which is just a value of type "[`qobject] obj" and not an OCaml object. This is why it crashes. -- Jérémie