[api-issues] [Issue 115745] OO crashes when repeatedl y triggering API commands
To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=115745 --- Additional comments from mattraf...@openoffice.org Wed Dec 15 14:28:12 + 2010 --- OK, it seems your sample is working... We should have mentioned in the first place that we are doing all this using the C# API. Sorry for the misunderstanding. Maybe you can have another look? - 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...@api.openoffice.org For additional commands, e-mail: issues-h...@api.openoffice.org - To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org For additional commands, e-mail: allbugs-h...@openoffice.org
[api-issues] [Issue 115745] OO crashes when repeatedl y triggering API commands
To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=115745 --- Additional comments from mattraf...@openoffice.org Wed Dec 1 15:34:42 + 2010 --- arielch: Yes, we tried using only the API before, but had the same problem. This code will crash OO Writer as well: for (int i = 2; i < 3000; i++) { { String sCellName = "A" + (i - 1); XText cellText = (XText)xTextTable.getCellByName(sCellName); cellText.setString("value" + i); } { String sCellName = "B" + (i - 1); XText cellText = (XText)xTextTable.getCellByName(sCellName); cellText.setString("value" + i); } { String sCellName = "C" + (i - 1); XText cellText = (XText)xTextTable.getCellByName(sCellName); cellText.setString("value" + i); } { String sCellName = "D" + (i - 1); XText cellText = (XText)xTextTable.getCellByName(sCellName); cellText.setString("value" + i); } if (i % 100 == 0) { Console.WriteLine("Row: " + i); } } - 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...@api.openoffice.org For additional commands, e-mail: issues-h...@api.openoffice.org - To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org For additional commands, e-mail: allbugs-h...@openoffice.org
[api-issues] [Issue 115745] OO crashes when repeatedl y triggering API commands
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 mattraf...@openoffice.org Tue Nov 23 16:29:03 + 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: issues-unsubscr...@api.openoffice.org For additional commands, e-mail: issues-h...@api.openoffice.org - To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org For additional commands, e-mail: allbugs-h...@openoffice.org