Viewing cursor object in IDE

Hello everyone,

When viewing certain objects in the watch window in IDE, Libreoffice hangs. In this case I was trying to access a cursor object, but I remember it happening with a couple of other ones as well. I defined a cursor or an entire sheet as well as a cell range, with exactly the same result. Is that a normal behaviour, and if so why?

Version: 7.2.5.2 (x64) / LibreOffice Community
Build ID: 499f9727c189e6ef3471021d6132d4c694f357e5
CPU threads: 16; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: en-CA (en_CA); UI: en-US
Calc: threaded

Hello,

If this can be duplicated, it is possibly a bug and should be reported → Bugzilla

Can also post a sample which fails (and how to cause the failure) to have it confirmed as a problem.

Hello @Ratslinger,
I’m attaching a file with a subroutine. Try to watch “oCursor” as you’re stepping through the sub. Every time I tried on my computer it hangs Libreoffice.

watchtestCreateCursorObject.ods (8.8 KB)

Haven’t worked with cursors in some time. Have no problem stepping through this code. If I try to examine oCursor it will crash (takes a little time). If I replace with:

Sub CreateCursorTest
    sheet = ThisComponent.CurrentController.ActiveSheet
    cell = sheet.getCellRangeByName("A1")

    cursor = sheet.createCursorByRange(cell)
End Sub 

.
from → Cursors
.
I have no problem and can examine cursor. Think your issue may be what you are trying to accomplish.

From a quick MRI exam, create cursor opens up more to be set. You should examine with MRI or the Calc object inspector.

Thank you once again :slight_smile: