https://bugs.freedesktop.org/show_bug.cgi?id=67116
Priority: medium
Bug ID: 67116
Assignee: [email protected]
Summary: Macros: RemoveByName with IDE Code Window open cause
program flow termination
Severity: normal
Classification: Unclassified
OS: All
Reporter: [email protected]
Hardware: Other
Whiteboard: BSA
Status: UNCONFIRMED
Version: 3.3 all versions
Component: BASIC
Product: LibreOffice
Created attachment 82724
--> https://bugs.freedesktop.org/attachment.cgi?id=82724&action=edit
The attached Writer ODT file contains code that demonstrates the problem.
Problem description:
The method “removeByName()” from the interface
“com.sun.star.container.XNameContainer” removes the specified element (module)
from the BasicLibraries(“Standard”) correctly.
However a scenario can exist in which the program exits the subroutine
immediately after executing the line of code that contains the “removeByName()”
method. When this occurs no error messages are reported.
To create the problem scenario, then the BASIC IDE Code Window must be open,
and it must be displaying a module from the document containing the
removeByName line of code.
Once the problem scenario has occurred, then it is necessary to close this
document and re-launch it to clear the problem.
Steps to reproduce:
1. Create a BASIC module named "Module2"
2. In Module1 create a subroutine as follows:
sub Main
BasicLibraries.getByName("Standard").removeByName("Module2")
Msgbox "Success: Module2 removed. Bug not observed."
end sub
3. Start execution of the above subroutine from the BASIC IDE Code Window
4. The Msgbox success message does not get executed.
5. The attached Writer ODT file has sample code that can better demonstrate the
problem scenario.
Current behavior:
With the BASIC Code Window displaying a module from the program that executes a
removeByName() line, then the program flow terminates.
Expected behavior:
With the BASIC Code Window displaying a module from the program that executes a
removeByName() line, then the program flow will continue and the subsequent
lines of code will be executed.
regards, ian.
Operating System: All
Version: 3.3 all versions
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs