Hi, Can you please modify ostream::out to check good() before calling it's streambuf? Something like this: ostream& put(char c) { if (good()) _strbuf->sputc(c); return *this; } Niall