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_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org