To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=48686
                  Issue #:|48686
                  Summary:|OfficeBean: Start of OOo process can cause
                          |blocks/deadlocks
                Component:|api
                  Version:|OOo 1.1 RC3
                 Platform:|All
                      URL:|
               OS/Version:|Windows XP
                   Status:|UNCONFIRMED
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|code
              Assigned to:|sw
              Reported by:|jki





------- Additional comments from [EMAIL PROTECTED] Wed May  4 02:38:19 -0700 
2005 -------
Currently the bean starts OOo without considering the pitfalls described in the 
api documentation of java.lang.Process:
"The Runtime.exec methods may not work well for special processes on certain 
native platforms, such as native windowing processes, daemon processes, 
Win16/DOS processes on Microsoft Windows, or shell scripts. The created 
subprocess does not have its own terminal or console. All its standard io (i.e. 
stdin, stdout, stderr) operations will be redirected to the parent process 
through three streams (Process.getOutputStream(), Process.getInputStream(), 
Process.getErrorStream()). The parent process uses these streams to feed input 
to and get output from the subprocess. Because some native platforms only 
provide limited buffer size for standard input and output streams, failure to 
promptly write the input stream or read the output stream of the subprocess may 
cause the subprocess to block, and even deadlock."

Unfortunately OOo does sometimes write text to output streams and sooner or 
later one of the buffers is full and the application blocks!
When starting the OOo process it should be made sure that the output stream and 
the error stream are cleared regularly, e.g. by starting two threads that 
handle this problem.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to