--- branches/new_design/OOPSE-3.0/src/io/SectionParserManager.cpp 2004/12/03 00:26:07 1840 +++ branches/new_design/OOPSE-3.0/src/io/SectionParserManager.cpp 2004/12/03 17:59:45 1841 @@ -87,6 +87,9 @@ void SectionParserManager::parse(std::istream& input, //invoke parser for (i = sectionParsers_.begin(); i != sectionParsers_.end(); ++i) { if (i->isActive) { + //C++ standard does not guarantee seekg reset EOF, in that case, seekg will fail + //It is always a good idea to call clear() before seek + input.clear(); input.seekg(i->offset); (i->sectionParser)->parse(input, ff, i->lineNo); }