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 LAA16076; Mon, 5 Aug 2002 11:32:59 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA16335 for ; Mon, 5 Aug 2002 11:32:58 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g759WuD16050; Mon, 5 Aug 2002 11:32:56 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA16334; Mon, 5 Aug 2002 11:32:56 +0200 (MET DST) Date: Mon, 5 Aug 2002 11:32:55 +0200 From: Xavier Leroy To: Nicolas Cannasse Cc: kyra , OCaml Subject: Re: [Caml-list] OCam'OLE pre-release Message-ID: <20020805113255.C7554@pauillac.inria.fr> References: <000901c237fe$04a92510$0700a8c0@warp> <001901c239b4$be8ccbf0$551aa8c0@kyra> <001101c23a0d$2f184220$0700a8c0@warp> <000d01c23ae3$9dd62700$551aa8c0@kyra> <003b01c23c54$32324570$0700a8c0@warp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <003b01c23c54$32324570$0700a8c0@warp>; from warplayer@free.fr on Mon, Aug 05, 2002 at 09:46:22AM +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > The job of the GC is to release unreferenced objects. > But I don't see how this can cause a bug : it seems that your crash is due > to a call of a COM method on a object AFTER it has been released... if it > has been Release, then it is no longer referenced by Ocaml... so , how can u > ever call a method on it ??? Because the COM object can still be referenced from C. You probably forgot to do an AddRef somewhere, e.g. when extracting a COM object reference from its Caml wrapper. Reference count management sure is tricky... - Xavier Leroy ------------------- 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