[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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 <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 itself. - Dmitry Bely