[Boost-bugs] [Boost C++ Libraries] #6638: convert_aux fails while intializing global variable

Subject: [Boost-bugs] [Boost C++ Libraries] #6638: convert_aux fails while intializing global variable
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-02-29 22:39:27


#6638: convert_aux fails while intializing global variable
--------------------------------+-------------------------------------------
 Reporter: john doe <johndoe> | Owner: bemandawes
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
  Version: Boost 1.49.0 | Severity: Problem
 Keywords: |
--------------------------------+-------------------------------------------
 ''path_traits.cpp''[[BR]]

 '''convert_aux''' fails in global scope:[[BR]]

 Trying to initialize global path variable by concatenating '/' a wide
 string path w/ narrow string path fails! [[BR]]

 "Unhandled exception at 0x0f8bc688 (msvcp100d.dll) in paths.exe:
 0xC0000005: Access violation reading location 0x00000000."
 [[BR]]

 If initializing inside main() scope everything works fine. I think this
 worked as expected in previous version(s) 1.48.. no luck with 1.49 though
 :( [[BR]]

 Additional info: WIN 32 and 64 bit, MSVS2010[[BR]]
 {{{
 #include <iostream>
 #include <boost/filesystem.hpp>

 using namespace boost::filesystem;

 path p(L"C:\\TEMP\\");
 path q(p / L"wide"); // Works!
 path r(p / "narrow"); // Breaks :(

 int _tmain(int argc, _TCHAR* argv[])
 {
     path p(L"C:\\TEMP\\");
     path q(p / L"wide"); // Works!
     path r(p / "narrow"); // Works here!

     std::cout << r.string() << std::endl;
         return 0;
 }
 }}}
 [[BR]]

 P.S. If more info is required I will reply here not by email.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6638>
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:09 UTC