resend attachment.
------------------ Original ------------------ From: "ChaosWong"<[email protected]>; Date: Wed, Jul 10, 2013 09:32 AM To: "osg-submissions"<[email protected]>; Subject: [osg-submissions] osgdb_shp plugin's XBaseParser may have a error Hi Robert, i develop osg application under windows. when i was loading a .shp file, my application was crashed. after i tracked, i found i miss a .bdf file, so code was crashed here: XBaseParser::XBaseParser(const std::string fileName): _valid(false) { int fd = 0; if (fileName.empty() == false) { #ifdef WIN32 if( (fd = open( fileName.c_str(), O_RDONLY | O_BINARY )) <= 0 ) #else if( (fd = ::open( fileName.c_str(), O_RDONLY )) <= 0 ) #endif { perror( fileName.c_str() ); if (fd) close( fd ); return; } } _valid = parse(fd); } thanks very much, and sorry about my english! chaoswong
XBaseParser.cpp
Description: Binary data
_______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
