A
Alex Vinokur
------------------------
Visual C++ 6.0
Debug Mode
-----------------------
I have the following piece of code:
================
int* p;
try
{
p = new int [0x7FFFFFFF];
}
catch (exception& e)
{
cout << "Standard exception: " << e.what() << endl;
}
================
'new' failed, but system has catched the exception, not my catch.
The message "Standard exception: <text from e.what>" hasn't been shown.
System error message box (with relevant text) has been shown.
Why doesn't work catch in code below?
Alex Vinokur
email: alex DOT vinokur AT gmail DOT com
http://mathforum.org/library/view/10978.html
http://sourceforge.net/users/alexvn
Visual C++ 6.0
Debug Mode
-----------------------
I have the following piece of code:
================
int* p;
try
{
p = new int [0x7FFFFFFF];
}
catch (exception& e)
{
cout << "Standard exception: " << e.what() << endl;
}
================
'new' failed, but system has catched the exception, not my catch.
The message "Standard exception: <text from e.what>" hasn't been shown.
System error message box (with relevant text) has been shown.
Why doesn't work catch in code below?
Alex Vinokur
email: alex DOT vinokur AT gmail DOT com
http://mathforum.org/library/view/10978.html
http://sourceforge.net/users/alexvn