Apache OpenOffice (AOO) Bugzilla – Issue 15323
Writer hangs when I close it immediately after opening
Last modified: 2013-02-24 21:06:40 UTC
I am writing a program to take control over OOo. In this program I start Writer, connect to it and can open new documents, load and store, add text and so on. The problem which occurs is the following: I start Office from my program and connect to it, then I open a document. As far all is fine. But when I close Writer immediately after opening then sometimes I receive an error message but sometimes Office hangs without a mesage and has to shut down by the Windows task manager. I use a delay to be able to close Writer before opening the document I want to have.
implementation issue
Please provide the (macro) code.
Created attachment 6767 [details] JDeveloper Project with 3 classes
Today I updated to the new SDK 1.1 beta 2. Now, when I start my program (see attachement) and shut down office within 1 or 2 seconds I get an exception message, that´s ok. When I exit office within 3 or 4 seconds (there is a delay of 5 seconds between starting and creating a new document) my program restarts office and creates the new document, that´s ok too. Altogether it works better with the new SDK. But when I shut down office <b>immediately</b> my program hangs. In contrast to the report I written last week I don´t have to shut down the office process in the Windoiws Task Manager - only my program hangs. To cause this problem, use my program which is attached. It is a shortened version of my original program but it is able to cause the error. Please notice to exit <b>immediately</b> office after starting or the bug won´t appear maybe you will need some tries.
Couldn't rebuild the described behaviour in the following 3 scenarios in OOo1.1RC3: 1. I started the attached program without interaction => works without problems. 2. I startetd the program and as soon as the first writer doc appeared I closed it => no problem occured 3. I changed the main method so that the started process is destroyed directly after DocumentManager.create(); => the expected DisposedException appeared
The Issue you raised has been marked as 'Resolved' and not updated within the last 1 year+. I am therefore setting this issue to 'Verified' as the first step towards Closing it. If you feel this is incorrect, please re-open the issue and add any comments. Many thanks, Andrew Cleaning-up and Closing old Issues ~ The Grand Bug Squash, pre v3 ~ http://marketing.openoffice.org/3.0/announcementbeta.html
As per previous posting: Verified -> Closed. A Closed Issue is a Happy Issue (TM). Regards, Andrew