• Advertisement
Sign in to follow this  

__try __exception __finally MSVC.NET

This topic is 4474 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
Sign in to follow this  

  • Advertisement