English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
OCaml memory leak issue
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-11-25 (07:42)
From: Christophe TROESTLER <Christophe.Troestler+ocaml@u...>
Subject: Re: [Caml-list] OCaml memory leak issue
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.