Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2 M1
    • Fix Version/s: 1.1.2, 1.2 M2
    • Component/s: XWord
    • Labels:
      None
    • Similar issues:

      Description

      Errors and messages are logged to the Windows system log, however if XWord does not have permission to log to the Win Log (which I've observed on Vista and Win7), then it falls back to a log file in the working directory.

      However, when I typically run Word, the working directory seems to end up as c:\Windows or c:\Windows\System32, and as I run Win7, XWord is not allowed to write to that destination.

      The exception thrown from the failure to write to a textfile log is not caught, and propagates up to Word but does not cross the DLL boundary. The end result is that the code path that creates the "loading" or "uploading" dialog boxes that XWord displays is never completed. The dialog box is left open and any code that should be run is not run at all.

      See attached patch, I have caught the offending errors when it cannot log to a text file (the fallback option). In such a situation, it will display a message to inform the user of the problem once, and then will not log after that.

      In addition, I have changed the location of the text log file to the user's temporary path, so we have a better chance of writing a log file.

        Activity

        Hide
        Florin Ciubotaru added a comment -

        Thanks, patch committed in r33621 with small modifications: now also checking for EventSource, removed user notification.

        Show
        Florin Ciubotaru added a comment - Thanks, patch committed in r33621 with small modifications: now also checking for EventSource, removed user notification.
        Hide
        Florin Ciubotaru added a comment -

        Fixed in r33621 + r33695(trunk) and r33701(1.1 branch).

        Show
        Florin Ciubotaru added a comment - Fixed in r33621 + r33695(trunk) and r33701(1.1 branch).

          People

          • Assignee:
            Florin Ciubotaru
            Reporter:
            Paul
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Date of First Response: