[Libreoffice-bugs] [Bug 127960] New: BASIC - variables of calling procedure zeroed after class method call
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Fri Oct 4 09:29:36 UTC 2019
https://bugs.documentfoundation.org/show_bug.cgi?id=127960
Bug ID: 127960
Summary: BASIC - variables of calling procedure zeroed after
class method call
Product: LibreOffice
Version: 6.1.0.3 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: BASIC
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: ingpaolo at msoft.it
Description:
I've written some basic code to read, modify and write some binary data from my
Garmin Forerunner 10.
I didn't use this macro since a long time. Now I needed to made some change on
a file and the macro stopped working on LibreOffice 6 (I got errors using LO
6.1.0.3, 6.2.5.2, 6.2.7.1, 6.3.1.2).
It continues working perfectly on LibreOffice 5.3.4.2.
The problem comes when the macro calls some Class method: before the call some
internal variables has the expected value (current byte id and current sheet
row). After the call variables are zeroed and so BASIC goes in error state.
This happens with both reading and wrinting file (on different classes)
In the zip attached there are, the ods file with the macros, a txt whit a short
description of the macro usage, some screenshots of the problem as well as the
correct end reading message box, the input and output .FIT files.
Note that with LO 6 is not possible (with this macro) to use F8 to do the
proper debugging, because when the cursor enter the class method, it is
impossible to do anything else. The only way to show you the screeshots with
the modified variable values has been that of using SHIFT+F8
Steps to Reproduce:
Read the file ShortMacroDescription.txt, inside attached zip file
Actual Results:
BASIC error
Expected Results:
Calc sheet compiled with the whole read bynary data converted in human readable
information and modified information written into binary data file
Reproducible: Always
User Profile Reset: No
Additional Info:
I've made test on 5 different computers:
- Ubuntu Linux real PC with LO 6.3.1.2 (ko)
- Suse Linux on VirtualBox with LO 6.2.5.2 (ko)
- Windows 10 real PC with LO 6.1.0.3 (ko)
- Windows 10 on VirtualBox with LO 6.2.7.1 (ko)
- Windows XP on VirtuaBox with LO 5.3.4.2 (the only one working)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20191004/fa846408/attachment.html>
More information about the Libreoffice-bugs
mailing list