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

          Priority: medium
            Bug ID: 78316
          Assignee: [email protected]
           Summary: BASIC: Basic “On Error GoTo” functionality breaks
                    under certain conditions
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: Other
        Whiteboard: BSA
            Status: UNCONFIRMED
           Version: 4.2.3.3 release
         Component: BASIC
           Product: LibreOffice

Problem description: 

When a Print statement is used in an “On Error GoTo” catch routine, the
information in Err, Erl, and Error is not reliable in some cases; for example,
this can be reproduced when errors are generated by the Simple File Access
object's getFolderContents() method. The Print statement appears to display
error information from prior errors not the current error. This occurs in both
Linux and Windows environments. It is not clear if this is limited solely to an
interaction with the Print statement or if there are other ways in which this
bug can surface. It is not clear why the Print statement behaves in this manner
and does not print all of the information associated with the current error.

Steps to reproduce:

This is reproducible by catching errors from the “getFolderContents()” method.
This appears to generate two additional errors internal to LibreOffice for a
total of three errors to be printed. Only two are printed. After the first such
error, the Catch routine falls further and further behind, which is very
confusing for any attempts at understanding or debugging (see 3.1, “Results
with Debug Level > Zero“ for more information).

Current behavior: Incorrect information is displayed for Error, Erl, and Err.

This also leads to unexpected output at the end of the program execution (see
Illustration 2: Unexpected output at the end of program execution and  Table 5:
Result summary for Linux, getFolderContents() method for more information)


Expected behavior:

Caught errors should generate all output conurrent with the error event.

I will upload a separate document with screen shots and supporting
documentation.

Operating System: All
Version: 4.2.3.3 release

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to