Throwing New Behavior Changed 

A change that occurred in the Visual C++ .NET 2002 compiler (version 13.00.9466) was that the Standard C++ Library's new header file would now throw an exception when a call to new failed.

In Visual C++ 2005, the compiler will, by default, throw an exception when any call to new fails.

For more information, see The new and delete Operators.

See Also

Reference

Breaking Changes in the Visual C++ Compiler