To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=69979
------- Additional comments from [EMAIL PROTECTED] Fri Apr 27 01:50:02 +0000 2007 ------- It is a bug but the questions is - in your script or that fact that Basic can dispose of it. The Developers Guide, Chapter 13, clearly states that: "The database context is a container for data sources. It is a singleton, that is, it may exist only once in a running OpenOffice.org API instance and can be accessed by creating it at the global service manager of the office." So, you should not dispose of it. Whether Basic should be allowed to do so is another question. I tried your script and yes it does just what you say - OOo must be restarted after the call to oDbContext.dispose() in order to work with any datasource, not just run your script a second time. After the call to dispose if a Base file is opened, for example, an attempt to create a connection to it simply fails - quietly. No error message is displayed to the user. I tested this under OOo 2.2 stable on WinXP. Perhaps someone on the API team, or the team responsible for the Basic script engine, should look at this and make the call. My personal opinion is that this is not a bug, as if the script programmer disposes of the context object then that is a bug in the script. --------------------------------------------------------------------- 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]
