https://bugs.documentfoundation.org/show_bug.cgi?id=157915
Bug ID: 157915
Summary: Error UNO type of C++ when running a Basic macro with
instruction commitChanges for
org.openoffice.Office.Commands/Execute/Disabled
Product: LibreOffice
Version: 7.5.3.2 release
Hardware: x86-64 (AMD64)
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: BASIC
Assignee: [email protected]
Reporter: [email protected]
Description:
Hello,
I'm running this marcro :
Sub disableAboutCommand()
disableCommand("About")
End Sub
Function disableCommand( cmd As String )
Dim keyNode As Object ' com.sun.star.configuration.Configuration(Update)Access
'
With GlobalScope.Basiclibraries
If Not .IsLibraryLoaded("Tools") Then .LoadLibrary("Tools")
End With
' Set the root path for our configuration access
keyNode =
Tools.Misc.GetRegistryKeyContent("org.openoffice.Office.Commands/Execute/Disabled",
True)
newCmd = keyNode.CreateInstanceWithArguments( Array() )
newCmd.setPropertyValue( "Command", cmd ) ' Add cmd to disabled command
list
keyNode.insertByName( "Command-" & cmd, newCmd) ' name must be unique
keyNode.commitChanges ' flush changes
End Function
I get this error on the line "keyNode.commitChanges" :
Erreur d'exécution BASIC.
Une exception s'est produite :
Type: com.sun.star.uno.RuntimeException
Message: [mscx_uno bridge error] UNO type of C++ exception unknown:
"std.system_error", RTTI-name=".?AVsystem_error@std@@"!.
After, LibreOffice stay open. The About menu is still visible.
If I close LibreOffice, the About menu has disappear.
Steps to Reproduce:
1. Copy/paste the macro in a module
2. Run disableAboutCommand
3.
Actual Results:
Error message
Erreur d'exécution BASIC.
Une exception s'est produite :
Type: com.sun.star.uno.RuntimeException
Message: [mscx_uno bridge error] UNO type of C++ exception unknown:
"std.system_error", RTTI-name=".?AVsystem_error@std@@"!.
Expected Results:
No error and Menu hidden
Reproducible: Always
User Profile Reset: No
Additional Info:
Version: 7.5.3.2 (X86_64) / LibreOffice Community
Build ID: 9f56dff12ba03b9acd7730a5a481eea045e468f3
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: CL threaded
--
You are receiving this mail because:
You are the assignee for the bug.