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
Limiting Memory Usage
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-07-17 (08:15)
From: Damien Doligez <damien.doligez@i...>
Subject: Re: [Caml-list] Limiting Memory Usage

On 2006-07-14, at 05:39, Alexander Fuchs wrote:

> Still, when the memory limit is reached the program just terminates  
> with
> "Fatal error: out of memory." resp "Out of memory". I couldn't figure
> out if it is possible to catch any of those errors/exceptions, and do
> some cleanup before terminating the program.

There is currently no way to catch these errors, because the heap
is in an inconsistent state when they are triggered.  This might
change at some point in the future, but don't hold your breath.

-- Damien