Operator new does not throw a bad_alloc exception on failure in Visual C++
Explains that the operator new in Visual C++ 5.0 does not throw a bad_alloc exception on failure and just returns a null pointer. You can override this behavior by installing a custom error handler by calling the _set_new_handler function.
support.microsoft.com |