To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=115745 Issue #|115745 Summary|OO crashes when repeatedly triggering API commands Component|api Version|OOo 3.2.1 Platform|PC URL| OS/Version|Windows Vista Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P1 Subcomponent|code Assigned to|jsc Reported by|mattraffic
------- Additional comments from [email protected] Tue Nov 23 16:29:03 +0000 2010 ------- When creating a document programmatically using the open office API, we need to insert occasional sleep statements to make it work halfway stable. Removing the these statements in code such as the following, makes OO crash. for (int i = 2; i < 3000; i++) { String sCellName = "A" + (i-1); XText cellText = (XText)xTextTable.getCellByName (sCellName); XTextCursor cursor = cellText.createTextCursor(); XTextViewCursor viewCursor = cursorSup.getViewCursor(); viewCursor.gotoRange(cursor, false); XDispatchHelper xDispatchHelper = (XDispatchHelper)multiServiceFactory.createInstance( "com.sun.star.frame.DispatchHelper"); PropertyValue[] tableArgs = new unoidl.com.sun.star.beans.PropertyValue[0]; xDispatchHelper.executeDispatch((XDispatchProvider)frame, ".uno:InsertRows", "", 0, tableArgs); xTextTable.getCellByName ("A" + i).setValue (22.5); System.Threading.Thread.Sleep(5); xTextTable.getCellByName ("B" + i).setValue (5615.3); System.Threading.Thread.Sleep(5); xTextTable.getCellByName ("C" + i).setValue (-2315.7); System.Threading.Thread.Sleep(5); xTextTable.getCellByName ("D" + i).setValue (-315.7); System.Threading.Thread.Sleep(5); if (i%100==0) { Console.WriteLine("Row: " + i); System.Threading.Thread.Sleep(50); } } Is this a known issue? Please fix it!!! --------------------------------------------------------------------- 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]
