From: Vadim Zeitlin Date: Sat, 23 Oct 2010 14:09:21 +0000 (+0000) Subject: Document that wxProcess::GetOutputStream() can't be used after CloseOutput(). X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1bcde56c8de35f710331cd15b998ac19a1f395f0 Document that wxProcess::GetOutputStream() can't be used after CloseOutput(). As closing the output stream makes it unusable, it is destroyed as well and so GetOutputStream() returns NULL after calling CloseOutput(). Closes #12605. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/interface/wx/process.h b/interface/wx/process.h index 47a2651b03..03e29baf59 100644 --- a/interface/wx/process.h +++ b/interface/wx/process.h @@ -123,6 +123,9 @@ public: This function can be used to indicate to the child process that there is no more data to be read - usually, a filter program will only terminate when the input stream is closed. + + Notice that GetOutputStream() will return @NULL after the output stream + is closed. */ void CloseOutput(); @@ -167,7 +170,9 @@ public: /** It returns an output stream correspoding to the input stream of the subprocess. - If it is @NULL, you have not turned on the redirection. + + If it is @NULL, you have not turned on the redirection or already + called CloseOutput(). @see Redirect(). */