Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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