|
|
||||||
|
#1
|
|
|
|
|
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; } [/Code] thanks in advance, George |
|
|
|
#2
|
|
|
|
|
"George" <George> wrote in message
news:c773 > I have tested try-catch works with structured exception, to my surprise. > Previously I think we have to use __try and __except. Have you tried testing that in in a release build? Regards, Will |
|
|
| Similar Threads | |
| Handle C++ exception and structured exception together Hello everyone, I am learning set_se_translator, and there are some good resources about how to translate structured exception into C++ exception, like, [..] 1. |
|
| Try-catch works with structured exception 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... |
|
| Try-catch works with structured exception 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... |
|
| Does Sun's Windows JVM catch Win32 Structured Exceptions? Hi I have a java program running on a windows platform which makes calls to an external product (dll, .NET) through JNI. In most cases where an exception is generated in... |
|
| Getting the exception code from a structured exception in a catch (...) block In my program I'm throwing C++ exceptions all around and need to catch structured exceptions and re-throw them as C++ exceptions. I've managed to do it, but it's a bit... |
|
|
All times are GMT. The time now is 01:25 AM. | Privacy Policy
|