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 RAA05518; Sat, 8 Dec 2001 17:28:42 +0100 (MET) 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 RAA05526 for ; Sat, 8 Dec 2001 17:28:41 +0100 (MET) 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 fB8GScT11516; Sat, 8 Dec 2001 17:28:38 +0100 (MET) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA05420; Sat, 8 Dec 2001 17:28:38 +0100 (MET) Date: Sat, 8 Dec 2001 17:28:38 +0100 From: Xavier Leroy To: Jeff Henrikson Cc: caml-list@inria.fr Subject: Re: [Caml-list] Re: SysThreads and DLL's Message-ID: <20011208172838.B5229@pauillac.inria.fr> References: <003601c17c55$a0493060$0b01a8c0@mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <003601c17c55$a0493060$0b01a8c0@mit.edu>; from jehenrik@yahoo.com on Mon, Dec 03, 2001 at 06:52:54PM -0500 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > I also need to expose caml code in a DLL. Could you post your > working thread code/event loop so that I can avoid hacking around? > Do you have any idea what will happen with windows dynamic linking > behavior if two such DLLs get loaded into the same process space? > It'd be cool if they could share runtimes, but I doubt that would be > an easy or free behavior. I'm not even sure you would get correct > separation of two runtimes for free. I'd have to test the linker > scoping behavior. If David McClain encapsulated his Caml code in a Win32 DLL the way I expect he did, each such DLL comes with its own copy of the Caml runtime system, allocates its own Caml heap, and doesn't share anything with any other Caml-encapsulated DLL. On the surface, this might look a bit wasteful in resources, but it sure makes things easier and more robust. - Xavier Leroy ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr