Hi!
Matt, the code you commited to check if a file exist doesn't work on my 
computer (it always return false), and I don't know the stdlib enough to 
understand why :( ..
So here is the weird gdb log i get :

Breakpoint 1, FichierExiste ([EMAIL PROTECTED]) at tool/file_tools.cpp:33
33        std::ifstream f(nom.c_str());
(gdb) print nom
$8 = (const string &) @0x80c8ddc: {static npos = 4294967295,
  _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = 
{<No data fields>}, <No data fields>}, _M_p = 0x80e0394 
"/home/lds/.wormux/config.xml"}}
(gdb) n
31      bool FichierExiste(const std::string &nom)
(gdb)
33        std::ifstream f(nom.c_str());
(gdb)
35        std::cout << nom << std::endl;
(gdb)
72            return __pf(*this);
(gdb)
/home/lds/.wormux/config.xml
110           { return this->fail() ? 0 : const_cast<basic_ios*>(this); }
(gdb)
36        bool existe = f;
(gdb)
516             if (!_M_filebuf.close())
(gdb)
36        bool existe = f;
(gdb)
516             if (!_M_filebuf.close())
(gdb)
242           { this->close(); }
(gdb)
458           { }
(gdb)
242           { this->close(); }
(gdb)
38        return existe;
(gdb) print f
$9 = <incomplete type>
(gdb) print existe
Variable "existe" is not available.
(gdb) n
242           { this->close(); }
(gdb)
191           { }
(gdb)
116           { _M_gcount = streamsize(0); }
(gdb)
270           ~basic_ios() { }
(gdb)
39      }

Any idea?

Lodesi

        

        
                
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com


Répondre à