Is "Out of Memory" a recoverable error?
Robert Fraser
fraserofthenight at gmail.com
Tue Dec 2 19:47:50 PST 2008
Don wrote:
> Strategy (1):
> Windows used to have a WM_COMPACTING message (maybe it still does) which
> was sent when the system was running low on memory. In D, you could
> imagine a similar sort of system callback, which is called when memory
> is short -- it means, free some memory now, otherwise you'll get an out
> of memory error.
> This is much simpler and more powerful than catching an
> OutOfMemoryException, freeing some memory, and then repeating what you
> were doing.
I like
More information about the Digitalmars-d
mailing list