Boost logo

Boost Users :

Subject: [Boost-users] [boost-users][exception] BOOST_THROW_EXCEPTION returns
From: Igor R (boost.lists_at_[hidden])
Date: 2009-03-24 13:28:10


Hello all,

A function throws boost::exception as follows:

  //....
  typedef boost::error_info<struct tag_action, std::string> action_name;
  BOOST_THROW_EXCEPTION(error() << action_name(name));
  return 0;

Both BOOST_NO_EXCEPTIONS and BOOST_EXCEPTION_DISABLE are *not* defined.
The excpetion is not catched anywhere. However, the thread continues
running! If I put breakpoint at "return 0;" it's hit, and I can
continue stepping the code. I run the program under MSVC 9.0, in debug
mode, and I see "First-chance exception" and "Unhandled exception"
notifications issued by the debugger.
Isn't it wrong behavior, or I miss something?

Thanks,

Igor'.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net