Sign in to follow this  
guyaton

__try __exception __finally MSVC.NET

Recommended Posts

guyaton    130
I was looking up error handling in VS.NET (2002) last night and came across these Microsoft specific error handles __try __exception __finally What are your opinions on them and are they better then try catch() blocks? ~guyaton

Share this post


Link to post
Share on other sites
Anon Mike    1098
It isn't a question of one being better than another. They're used for different things.

try/catch in C++ is used for catching exceptions thrown via "throw".

__try/__except/__finally is for catching stuff like access violations. It works in C as well as in C++.

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