Boost logo

Boost Users :

From: Alessandro Testa (a.testa_at_[hidden])
Date: 2006-05-30 05:30:37


hi,
I've a problem with a simple program.

the source is like this:

int main(int argc, char **argv)
{
 
 
  std::string s("./");
  boost::filesystem::path p(s, WifiSolution::check_name);

etc...

this program works fine on linux and freebsd. when I try to execute it
on windows xp it throws an
exception during the creation of the object p, more specific in the
function m_path_append.

the complete stack is

     msvcr80.dll!operator new(unsigned int size=3435973868) Line 63 +
0x1e bytes C++
     msvcp80.dll!std::_Allocate<char>(unsigned int _Count=3435973868,
char * __formal=0x00000000) Line 44 + 0x6 bytes C++
     
msvcp80.dll!std::basic_string<char,std::char_traits<char>,std::allocator<char>
>::_Copy(unsigned int _Newsize=3435973867, unsigned int _Oldlen=31)
Line 1986 + 0xd bytes C++
     
msvcp80.dll!std::basic_string<char,std::char_traits<char>,std::allocator<char>
>::_Grow(unsigned int _Newsize=3435973867, bool _Trim=false) Line 2012
+ 0xb bytes C++
     
msvcp80.dll!std::basic_string<char,std::char_traits<char>,std::allocator<char>
>::append(const
std::basic_string<char,std::char_traits<char>,std::allocator<char> > &
_Right={...}, unsigned int _Roff=0, unsigned int _Count=3435973836)
Line 931 + 0x16 bytes C++
     
msvcp80.dll!std::operator+<char,std::char_traits<char>,std::allocator<char>
>(const
std::basic_string<char,std::char_traits<char>,std::allocator<char> > &
_Left="invalid name "ÌÌÌÌ." in path: "", const
std::basic_string<char,std::char_traits<char>,std::allocator<char> > &
_Right="ÌÌÌÌ./") Line 25 + 0x21 bytes C++
     Backup++.exe!boost::filesystem::path::m_path_append() + 0xddc
bytes C++
     Backup++.exe!boost::filesystem::path::path() + 0x4b bytes C++
     Backup++.exe!main(int argc=1, char * * argv=0x003a5c40) Line 22 +
0xf bytes C++

as you can see I'm using Microsoft Visual Studio .NET 2005 (vc-8.0)

Any idea?
Bye
Alex


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