Sign in to follow this  
y2jsave

exceptions c++ doubt !!

Recommended Posts

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this