From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 9FF75BC69 for ; Thu, 10 May 2007 19:21:56 +0200 (CEST) Received: from smtp6-g19.free.fr (smtp6-g19.free.fr [212.27.42.36]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l4AHLuIJ032382 for ; Thu, 10 May 2007 19:21:56 +0200 Received: from [192.168.1.2] (che78-2-82-237-71-191.fbx.proxad.net [82.237.71.191]) by smtp6-g19.free.fr (Postfix) with ESMTP id 0C2F08F2D8; Thu, 10 May 2007 19:21:54 +0200 (CEST) Message-ID: <464354B2.30806@inria.fr> Date: Thu, 10 May 2007 19:21:54 +0200 From: Xavier Leroy User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dmitry Bely Cc: Caml List Subject: Re: [Caml-list] Ocaml DLL and memory leaks References: <90823c940705090345k5c70fcc3p35ca3cc4412909c2@mail.gmail.com> In-Reply-To: <90823c940705090345k5c70fcc3p35ca3cc4412909c2@mail.gmail.com> X-Enigmail-Version: 0.91.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 464354B4.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 runtime:01 runtime:01 dynamically:01 caml-list:01 dll:03 dll:03 cleanup:03 module:03 leaks:04 xavier:06 xavier:06 inria:06 leroy:07 > I have an Ocaml module packed into DLL that is dynamically loaded by > the main C program. What should I do to free all memory taken by Ocaml > runtime when the DLL is unloaded? This si not possible currently. I agree the OCaml runtime system should one day provide a cleanup function to do this. Regards, - Xavier Leroy