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 DLL and memory leaks
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-05-11 (13:19)
From: Dmitry Bely <dmitry.bely@g...>
Subject: Re: [Caml-list] Ocaml DLL and memory leaks
On 5/10/07, Xavier Leroy <Xavier.Leroy@inria.fr> wrote:
> > 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 is not possible currently.  I agree the OCaml runtime system
> should one day provide a cleanup function to do this.

It turned out that at least for Microsoft C runtime things are not
that bad. If you statically link CRT, it will clean up all resources

- Dmitry Bely