To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=49454
User jl changed the following: What |Old value |New value ================================================================================ Status|NEW |RESOLVED -------------------------------------------------------------------------------- Resolution| |WORKSFORME -------------------------------------------------------------------------------- ------- Additional comments from [EMAIL PROTECTED] Mon Aug 22 06:10:44 -0700 2005 ------- This seems to be a timing problem. When inserting some Thread.sleep calls then the code runs without problems: for (int j = 0; j < 10; j++) { final OOoBean bean = new OOoBean(); java.awt.Frame frame = null; bean.setOOoCallTimeOut(10000); try { frame = new java.awt.Frame("OpenOffice.org Demo"); frame.add(bean, BorderLayout.CENTER); frame.pack(); frame.setSize(600,300); frame.show(); bean.loadFromURL("private:factory/swriter", null); // #1 Thread.sleep(1000); StringBuffer buf = new StringBuffer(1000); for (int i = 0; i < 1; i++) { bean.releaseSystemWindow(); frame.remove(bean); frame.add(bean, BorderLayout.CENTER); bean.aquireSystemWindow(); } } finally { bean.stopOOoConnection(); frame.dispose(); } } } or for (int j = 0; j < 50; j++) { final OOoBean bean = new OOoBean(); final java.awt.Frame frame = new Frame("Openoffice.org"); bean.setOOoCallTimeOut(10000); try { frame.add(bean, BorderLayout.CENTER); frame.pack(); frame.setSize(600,400); frame.show(); bean.loadFromURL("private:factory/swriter", null); frame.validate(); // #1 Thread.sleep(1000); for (; i < 1; i++) { EventQueue q = Toolkit.getDefaultToolkit().getSystemEventQueue(); q.invokeAndWait( new Runnable() { public void run() { try { bean.releaseSystemWindow(); frame.remove(bean); frame.validate(); } catch (Exception e) { e.printStackTrace(); } } }); // #2 Thread.sleep(1000); q.invokeAndWait( new Runnable() { public void run() { try { frame.add(bean, BorderLayout.CENTER); bean.aquireSystemWindow(); frame.validate(); } catch (Exception e) { e.printStackTrace(); } } }); // #3 Thread.sleep(1000); } } finally { bean.stopOOoConnection(); frame.dispose(); } } } These code samples were taken from the bean/qa/complex/OOoBeanTest.java (test6, test6a). Because the bean uses "no official API for displaying the native window" (there is none) we cannot really make a case here with the Java falks. As long as the work around works we should leave it at that. --------------------------------------------------------------------- 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]