| Summary: | Macros: Watch window - crashes Base, when browsing .Model.BoundField | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Mateusz <mateusz.dobrowolny> |
| Component: | Base | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | dr, serval2412 |
| Priority: | medium | ||
| Version: | 3.5.2 release | ||
| Hardware: | x86-64 (AMD64) | ||
| OS: | Windows (All) | ||
| Whiteboard: | |||
| Crash report or crash signature: | Regression By: | ||
| Attachments: |
odb with macro and listbox in form
screen shot in 4.3/master |
||
Any update with last stable LO version 4.2.5? If you still reproduce the crash, you can give a try with https://wiki.documentfoundation.org/How_to_get_a_backtrace_with_WinDbg to retrieve a stacktrace. Also, it could be useful you attach an example file so one can quickly reproduce the problem. Created attachment 107545 [details]
odb with macro and listbox in form
here's a document setup as above
Created attachment 107547 [details]
screen shot in 4.3/master
I can expand my example oArray's BoundField fine in 4.3 and master, so I'm going to call this fixed. If there's an counter-examples feel free to attach and reopen
|
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