exceptions c++ doubt !!

Started by
1 comment, last by iMalc 13 years, 4 months ago
which types of exceptions are not caught by caught( ... )

best regards
y2jsave
Advertisement
All C++ exceptions are caught by catch (...). If your environment contains non-C++ exceptions, such as MSVC with SEH exceptions, then catch (...) may or may not catch those exceptions.
Quote:Original post by no such user
All C++ exceptions are caught by catch (...). If your environment contains non-C++ exceptions, such as MSVC with SEH exceptions, then catch (...) may or may not catch those exceptions.
You can catch SEH exceptions by wrapping the function call inside another function that uses __try and __except.
There are other ways also, but the best option is to never cause them to be thrown in the first place, as they're most often Access Violations etc that tend to indicate a bug.
"In order to understand recursion, you must first understand recursion."
My website dedicated to sorting algorithms

This topic is closed to new replies.

Advertisement