From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 5EBD1BBAF for ; Thu, 25 Nov 2010 08:42:55 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjoBAGGi7UzUNQQjmWdsb2JhbACVAo4IFQEBAQEBCAsKBxEirwcBjgkFhUeKZQ X-IronPort-AV: E=Sophos;i="4.59,253,1288566000"; d="scan'208";a="80164271" Received: from relay02ant.iops.be ([212.53.4.35]) by mail4-smtp-sop.national.inria.fr with ESMTP; 25 Nov 2010 08:42:55 +0100 Received: from localhost (localhost.localdomain [127.0.0.1]) by relay02ant.iops.be (Postfix) with ESMTP id 6BA4E4021C4B; Thu, 25 Nov 2010 08:42:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iops.be; h= content-transfer-encoding:content-type:content-type:mime-version :x-mailer:organization:references:in-reply-to:from:from:subject :subject:message-id:date:date:received:received:received; s= scooby; i=postadmin@iops.be; t=1290670973; bh=/1UYuFZFTNk0QMlECD fnNuS0UaETSiZasKsOrLIuNnk=; b=tVyqNwydt6q54mfHi5G/g5m9icafcEhDmd Jn/epJ7tvQus+JZ/TE2C3XvVPYJyAUqVpaWwKgekLwYBeRuJ84lFp+GmDYviMlBg sXkt2McQd2iZr8YXpJxREs8tGC2O0kGrOjWZoIRT0EuWfg+8lwFhp4A928j2cfjG b/WvBfmk0= X-Virus-Scanned: amavisd-new at iops.be Received: from relay02ant.iops.be ([127.0.0.1]) by localhost (bdell035.dcn.iops.be [127.0.0.1]) (amavisd-new, port 10026) with LMTP id EQELDAGz3eHc; Thu, 25 Nov 2010 08:42:53 +0100 (CET) Received: from poincare (cust-183-166-109-94.dyn.as47377.net [94.109.166.183]) by relay02ant.iops.be (Postfix) with ESMTP id C6D724020851; Thu, 25 Nov 2010 08:42:51 +0100 (CET) Received: from localhost ([::1]) by poincare with esmtp (Exim 4.72) (envelope-from ) id 1PLWTi-0000r1-HV; Thu, 25 Nov 2010 08:42:50 +0100 Date: Thu, 25 Nov 2010 08:42:50 +0100 (CET) Message-Id: <20101125.084250.936894655214001480.Christophe.Troestler+ocaml@umons.ac.be> To: goswin-v-b@web.de Cc: edwintorok@gmail.com, caml-list@yquem.inria.fr, kecheng@cecs.pdx.edu Subject: Re: [Caml-list] OCaml memory leak issue From: Christophe TROESTLER In-Reply-To: <87lj4ipcqk.fsf@frosties.localnet> References: <201011231954241577004@cecs.pdx.edu> <20101124093035.473bd2e5@deb0> <87lj4ipcqk.fsf@frosties.localnet> X-Face: #2fb%mPx>rRL@4ff~TVgZ"<[:,oL"`TUEGK/[8/qb58~C>jR(x4A+v/n)7BgpEtIph_neoLKJBq0JBY9:}8v|j Organization: University of Mons X-Mailer: Mew version 6.3.50 on Emacs 23.2 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; ocaml:01 christophe:01 troestler:01 christophe:01 troestler:01 ocaml:01 0100,:01 tokens:01 pointers:01 wrote:01 caml-list:01 umh:01 exit:04 finalize:05 weak:06 On Wed, 24 Nov 2010 23:40:03 +0100, Goswin von Brederlow wrote: > > In case of custom blocks and finalize function I believe this to be an > error. Managing resources that the OS does not free (IPC tokens, > tempfiles, ...) is made much harder due to this. You also have "at_exit" and weak pointers which can help you to do that. Best, C.