To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=66242 Issue #:|66242 Summary:|OOoBean: Bridge throws DisposedException after |load(), stopOOoConnection(), load() Component:|api Version:|OOo 2.0.2 Platform:|All URL:| OS/Version:|All Status:|UNCONFIRMED Status whiteboard:| Keywords:| Resolution:| Issue type:|DEFECT Priority:|P2 Subcomponent:|code Assigned to:|jsc Reported by:|harwey
------- Additional comments from [EMAIL PROTECTED] Thu Jun 8 05:43:42 -0700 2006 ------- Scenario: Loading a document via loadFromURL() with OOoBean implicitely starts OpenOffice if it's not already running. If you call stopOOoConnection() after working with some documents this method calls clear() to set OOoBean in kind of an initial state. Actually after this the end()-method of the EventListener inside OOoBean is called that calls getOOoDesktop().removeTerminateListener( this ); in line 1434. getOOoDesktop() implicitely creates a connection and a Bridge that will throw a DisposedException (in line 693) if you call loadFromURL() now. I am not perfectly sure, but in my case it works when I replace getOOoDesktop().removeTerminateListener(this); with xDesktop.removeTerminateListener(this); in the end()-method of the EventListener. Probably good code should look like if(xDesktop != null) xDesktop.removeTerminateListener(this); Now a subsequent call to loadFromURL() works perfectly. --------------------------------------------------------------------- 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]