Hello everyone,
I have tested try-catch works with structured exception, to my surprise. Previously I think we have to use __try and __except.
Any comments? Here is my test code and I am using Visual Studio 2008.
Code:#include <iostream> using namespace std; int main() { int* address = NULL; try{ (*address) = 1024; } catch (...) { cout << "access violation caught" << endl; } return 0; }
thanks in advance,
George