To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=94994 Issue #|94994 Summary|Cannot remove unloaded Basic Library Component|api Version|OOO300m9 Platform|PC URL| OS/Version|Windows XP Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|code Assigned to|jsc Reported by|bmarcelly
------- Additional comments from [EMAIL PROTECTED] Thu Oct 16 09:42:03 +0000 2008 ------- Steps to reproduce: a) Create a Basic library (here named "azerty") in "My Macros" b) In a document, create this macro Sub Main Const lalib = "azerty" if GlobalScope.BasicLibraries.hasByName(lalib) then GlobalScope.BasicLibraries.removeLibrary(lalib) if GlobalScope.DialogLibraries.hasByName(lalib) then GlobalScope.DialogLibraries.removeLibrary(lalib) End Sub c) Close OpenOffice. d) Reopen it by loading the document. Run the macro. => Error message : exception LibraryNotLoadedException e) Load the library (e.g. by double-click in the Basic macros dialog) f) Run again the macro: the library is removed correctly. This is a regression from previous versions. - In 2.x and 1.x you don't need to load a library to remove it, so old macros like this may raise exception. - The IDL description of removeLibrary does not tell of an exception "LibraryNotLoadedException" --------------------------------------------------------------------- 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]
