void PipedProcess::ForfeitStreams()
{
char buf[4096];
if (IsErrorAvailable())
{
wxInputStream *in = GetErrorStream();
while(in->Read(&buf, sizeof(buf)).LastRead())
;
}
if (IsInputAvailable())
{
wxInputStream *in = GetErrorStream();
while(in->Read(&buf, sizeof(buf)).LastRead())
;
}
}
Is the double "= GetErrorStream();" a result of the copy/paste imp again?I'd say so, yes! Hence I wonder why it is working anyways... is the cout/cerr stream possibly combined?!
It works because only the error stream matters. But yes, it looks like a copy error.So Lieven... seems it's best if you fix this? ;-)