I want to get a NULL-Pointer instead of a bad_alloc exception in use with new.
But my Program crashes if I use "nothrow" !
What's wrong with my code ?
Please, could somebody give me a hint !?
Thanks.Code:#include <new> // This works, but not with (std::nothrow) ..., why ??? pObj = new /*(std::nothrow)*/ OBJ[newDim];