The following abort program calls the method, even if I have an applicable catch statement. What is the reason?
#include <iostream> #include <string> using namespace std; int main() { try { cout << "inside try\n"; throw "Text"; } catch (string x) { cout << "in catch" << x << endl; } cout << "Done with try-catch\n"; }
When I run the program, I get only the first inside try , and then I get this error:

Why is the abort call called even when I am handling a string exception?
source share