Is "Out of Memory" a recoverable error?

Kagamin spam at here.lot
Tue Dec 2 12:45:43 PST 2008


Kagamin Wrote:

> One can get rid of OOM just by adding a couple of lines to the default malloc, that call custom handler (similar to onOutOfMemoryError handler) wich does any magic wanted, so OOM doesn't break nothrow functions, and if it's thrown, this means that recovery code has failed to recover and application exits. So nothrow protocol remains the same.

I think, preventing OOM is the only possible technique to make sure you don't interfere with the rest of the application.



More information about the Digitalmars-d mailing list