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 KAA04715; Thu, 18 Jul 2002 10:25: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 KAA04711 for ; Thu, 18 Jul 2002 10:25:04 +0200 (MET DST) Received: from kraid.nerim.net (kraid.nerim.net [62.4.16.95]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g6I8P3H27311 for ; Thu, 18 Jul 2002 10:25:03 +0200 (MET DST) Received: from karryall.dnsalias.org (karryall.dnsalias.org [62.4.18.180]) by kraid.nerim.net (Postfix) with ESMTP id 4BAD240E35; Thu, 18 Jul 2002 10:18:29 +0200 (CEST) Received: by karryall.dnsalias.org (Postfix, from userid 500) id 509974D0293; Thu, 18 Jul 2002 10:25:00 +0200 (CEST) Message-ID: <15670.31580.140719.514440@karryall.dnsalias.org> Date: Thu, 18 Jul 2002 10:25:00 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: "Yaron M. Minsky" Cc: Michael Tucker , caml-list@inria.fr From: Olivier Andrieu Subject: Re: [Caml-list] Opaque pointers with camlidl In-Reply-To: <1026958782.11081.13.camel@dragonfly.localdomain> References: <1026958782.11081.13.camel@dragonfly.localdomain> X-Mailer: VM 7.07 under Emacs 21.2.1 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Yaron M. Minsky [ 17 July 2002] : > For what it's worth, I have written a small berkeley DB interface (for > version 3.3.11, the one found in RH 7.3), which I've attached to this > email. Hi, At the beginning, of your stub I noticed this : static void finalize_caml_dbenv(value dbenv) { CAMLparam1(dbenv); caml_dbenv_close_internal(dbenv); CAMLreturn0; } I think it's not a good idea to use CAMLparam* in the finalisation function. IIRC, the manual explicitly says not to. -- 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