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 UAA02049; Sun, 11 Jul 2004 20:58:05 +0200 (MET DST) 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 UAA02192 for ; Sun, 11 Jul 2004 20:58:04 +0200 (MET DST) Received: from web53203.mail.yahoo.com (web53203.mail.yahoo.com [206.190.39.219]) by nez-perce.inria.fr (8.12.10/8.12.10) with SMTP id i6BIw2EV008142 for ; Sun, 11 Jul 2004 20:58:03 +0200 Message-ID: <20040711185802.8039.qmail@web53203.mail.yahoo.com> Received: from [155.97.235.24] by web53203.mail.yahoo.com via HTTP; Sun, 11 Jul 2004 11:58:02 PDT Date: Sun, 11 Jul 2004 11:58:02 -0700 (PDT) From: Andy Yang Subject: Re: [Caml-list] Toplevel crashes when trying to call external functions To: art yerkes Cc: caml-list@inria.fr In-Reply-To: <20040711131442.4557bb6e.ayerkes@speakeasy.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Miltered: at nez-perce with ID 40F18DBA.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 crashes:01 pointers:01 camlparam:01 camllocal:01 val:01 solver:01 val:01 solver:01 endl:01 camlreturn:01 mng:99 camlparam:01 mng:99 endl:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, Since at this point, I am not concerning much about codes' portability, so I just assume the program run on x86 machines, on which 32 bits pointers are allowed.I modified code as follows: value zchaff_InitManager(void) { CAMLparam0(); CAMLlocal1(val); void* solver = SAT_InitManager(); val = copy_int32((int)solver); cout<<"solver = "<