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 AAA09622; Sat, 3 Aug 2002 00:23:54 +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 AAA09625 for ; Sat, 3 Aug 2002 00:23:54 +0200 (MET DST) Received: from mx6.mail.ru (mx6.mail.ru [194.67.57.16]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g72MNr522596 for ; Sat, 3 Aug 2002 00:23:53 +0200 (MET DST) Received: from [213.171.63.98] (helo=kyra) by mx6.mail.ru with smtp (Exim SMTP.6) id 17akps-0000c8-00; Sat, 03 Aug 2002 02:23:52 +0400 Message-ID: <000e01c23a7c$03b4ee20$551aa8c0@kyra> From: "kyra" To: "Nicolas Cannasse" , "OCaml" References: <000901c237fe$04a92510$0700a8c0@warp> <001901c239b4$be8ccbf0$551aa8c0@kyra> <001101c23a0d$2f184220$0700a8c0@warp> Subject: Re: [Caml-list] OCam'OLE pre-release Date: Sat, 3 Aug 2002 02:26:21 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > Yes, i would actually ear your arguments about that point, because it does > not seems clear to me : the AddRef/Release semantic of COM is a reference > counting to enable the sharing of object and thus determine its time-life > the last Release() call will trigger effective memory release of the > object ). But ocaml variable and COM reference are merely different things. > Simply modify ocamole in order to not call "i->Release()" if CoUninitialize > had been made, or ( better ) GC'd all your COM objects before calling > ComUninit. This does not work. Even not to call CoUninitialize does not work. There is the same access violation (not segfault as i've early mentioned) error everywhere: "The object invoked has disconnected from its clients". I am in no way ocaml or COM expert, but it seems this is because ocaml not only GCs _unneeded variable_ but also Releases _still needed_ interface. ------------------- 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