To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=114574
                 Issue #|114574
                 Summary|Writer hangs on fast programmatic file generation
               Component|udk
                 Version|OOo 3.1.1
                Platform|PC
                     URL|
              OS/Version|Windows 7
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|kr
             Reported by|localhost





------- Additional comments from localh...@openoffice.org Fri Sep 17 13:57:24 
+0000 2010 -------
<pre>
        public static void main(String[] args) throws Exception {
                XComponentContext xContext = Bootstrap.bootstrap();
                XMultiComponentFactory xMCF = xContext.getServiceManager();
                Object oDesktop = 
xMCF.createInstanceWithContext("com.sun.star.frame.Desktop",
xContext);
                XComponentLoader tempLoader =
(XComponentLoader)UnoRuntime.queryInterface(XComponentLoader.class, oDesktop);
                String sUrl =
"file:///C:/dev/workspaces/any/OpenOfficeConnectionTest/Writer2.odt";
                for (int i = 1; i <= 50; i++) {
                        XComponent xComp = 
tempLoader.loadComponentFromURL(sUrl, "_blank", 0, new
PropertyValue[0]);

                        XStorable xStorable = 
(XStorable)UnoRuntime.queryInterface(XStorable.class,
xComp);

                        File tempFile = File.createTempFile("WriterTest", 
".odt");
                        tempFile.deleteOnExit();
                        StringBuffer sSaveUrl = new StringBuffer("file:///");
                        
sSaveUrl.append(tempFile.getCanonicalPath().replace('\\', '/'));

                        PropertyValue[] propertyValue = new PropertyValue[1];
                        propertyValue = new PropertyValue[2];
                        propertyValue[0] = new PropertyValue();
                        propertyValue[0].Name = "Overwrite";
                        propertyValue[0].Value = new Boolean(true);
                        propertyValue[1] = new PropertyValue();
                        propertyValue[1].Name = "FilterName";
                        propertyValue[1].Value = "StarOffice XML (Writer)";
                        xStorable.storeAsURL(sSaveUrl.toString(), 
propertyValue);

                        XCloseable tempCloseable =
(XCloseable)UnoRuntime.queryInterface(XCloseable.class, xComp);
                        tempCloseable.close(true);
                        System.out.print(i % 10 == 0 ? ":" : ".");
                }
                System.exit(0);
        }
</pre>

PS: I have no idea how to format issue in bugzilla, sorry.

---------------------------------------------------------------------
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: issues-unsubscr...@udk.openoffice.org
For additional commands, e-mail: issues-h...@udk.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to