[Libreoffice-bugs] [Bug 49232] New: Macros: Watch window - crashes Base, when browsing .Model.BoundField

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Apr 27 23:27:03 CEST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=49232

             Bug #: 49232
           Summary: Macros: Watch window - crashes Base, when browsing
                    .Model.BoundField
    Classification: Unclassified
           Product: LibreOffice
           Version: LibO 3.5.2 Release
          Platform: x86-64 (AMD64)
        OS/Version: Windows (All)
            Status: NEW
          Severity: minor
          Priority: medium
         Component: Database
        AssignedTo: libreoffice-bugs at lists.freedesktop.org
        ReportedBy: mateusz.dobrowolny at gmail.com


I have an event on "Mouse inside".
Control is a ListBox.

Macro:
Sub learn_control (oEvent As Object)
Dim oModel As Object
    oModel = oEvent.Source.getModel()
Dim oControl As Object
REM I have a text box on the form I use to display for example .DBG_Properties
    oControl = oEvent.Source.Model.Parent.GetByName("Uwagi text box")
    oModel.TextColor = RGB(255,1,0)
Dim oArray
REM 'oArray' is just a name - it is not an array :)
    oArray = oEvent.Source.getSelectedItem()
    oControl.Text = oEvent.Source.DBG_Properties
    oArray = oEvent.Source
End Sub

I guess it is enough to have:
Sub learn_control (oEvent As Object)
Dim oObject As Object
   oObject = oEvent.Source
End Sub

The I put a breakpoint on "oArray = oEvent.Source".
Then press F8.
And I add 'oArray' to Watch list.
Then I expand a results:

Variable: oArray
Type: com.sun.star.comp.forms.OListBoxControl

Then subitem:
Variable: Model
Type: com.sun.star.comp.forms.OListBoxModel

Then subitem (first expandable, with [+] next to it):
Variable: BoundField
Type: com.sun.star.sdb.ODataColumn



Error:
When I click a [+] sign, the LibreOffice Base crashes, and then starts
recovering my .odb file.

Pls. let me know where to search for logs or how to get stack trace.

Regards,
Mateusz

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Libreoffice-bugs mailing list