File descriptor 0 is valid
SMESH_File file( myFile, /*open=*/false );
if ( !file.open() ) {
fprintf(stderr, ">> ERROR : cannot open file %s \n", myFile.c_str());
+ if ( file.error().empty() )
+ fprintf(stderr, ">> ERROR : %s \n", file.error().c_str());
return DRS_FAIL;
}
*/
SMDS_ElemIteratorPtr SMDS_VtkVolume::uniqueNodesIterator() const
{
- MESSAGE("uniqueNodesIterator");
+ //MESSAGE("uniqueNodesIterator");
return SMDS_ElemIteratorPtr(new SMDS_VtkCellIterator(SMDS_Mesh::_meshList[myMeshId], myVtkID, GetEntityType()));
}
bool ok = ( _file != INVALID_HANDLE_VALUE );
#else
_file = ::open(_name.data(), O_RDONLY );
- bool ok = ( _file > 0 );
+ bool ok = ( _file >= 0 );
#endif
if ( ok )
{