]> git.saurik.com Git - wxWidgets.git/commitdiff
Document that wxProcess::GetOutputStream() can't be used after CloseOutput().
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 23 Oct 2010 14:09:21 +0000 (14:09 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 23 Oct 2010 14:09:21 +0000 (14:09 +0000)
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

interface/wx/process.h

index 47a2651b03c897dc1a94dd1ebd27e6d3bcb15d5a..03e29baf59b36080f9ba0339a2e2b741c0e83eb9 100644 (file)
@@ -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.
         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();
 
     */
     void CloseOutput();
 
@@ -167,7 +170,9 @@ public:
 
     /**
         It returns an output stream correspoding to the input stream of the subprocess.
 
     /**
         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().
     */
 
         @see Redirect().
     */