What happens if memory allocation fails?

tcak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Feb 20 06:21:28 PST 2016


This is not easy to try. So I need ask, maybe someone has 
experienced.

What happens if memory allocation fails with "new" keyword? Does 
it
throw an exception? throwable?

All I want is to be able to catch OutOfMemory event, and take 
other
steps based on that.


More information about the Digitalmars-d-learn mailing list