[Boost-bugs] [Boost C++ Libraries] #8926: Windows error messages used for errno codes

Subject: [Boost-bugs] [Boost C++ Libraries] #8926: Windows error messages used for errno codes
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-07-25 08:10:06


#8926: Windows error messages used for errno codes
-------------------------------------------------+-------------------------
 Reporter: Lars T. Kyllingstad | Owner: bemandawes
  <lars.kyllingstad@…> | Status: new
     Type: Bugs | Component: system
Milestone: To Be Determined | Severity: Problem
  Version: Boost 1.53.0 |
 Keywords: |
-------------------------------------------------+-------------------------
 Consider the following:
 {{{
 using namespace boost::system;
 system_error e(errc::resource_unavailable_try_again, system_category());
 std::cout << e.what() << std::endl;
 }}}
 This should print something along the lines of "Resource unavailable", but
 instead it prints "An attempt was made to load a program with an incorrect
 format".

 The value of `errc::resource_unavailable_try_again` is 11, or `EAGAIN`.
 What is printed, however, is the message for the Windows system error code
 `ERROR_BAD_FORMAT`, which is also 11.

 I encountered this while using boost::thread. I got the above message
 when I ran out of memory during thread creation.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8926>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:13 UTC