Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: -- (:)
From: Dmitry Bely <dmitry.bely@g...>
Subject: Re: [Caml-list] Ocaml DLL and memory leaks
On 5/10/07, Xavier Leroy <> 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