Uploaded image for project: 'Etch'
  1. Etch
  2. ETCH-26

C# Binding: some unexpected exceptions are thrown if .Net Framework Language Pack is installed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0, 1.0.1, 1.1
    • 1.2
    • binding-csharp
    • None
    • windows .Net Framework Language Pack is installed

    Description

      If .Net Framework Langurage Pack is installed,
      The "Message" property of Exception returns localized messages.
      So, the following in the Etch.Util.TcpTransport.ReadSocket() cause a problem.

      //---------------------------------//
      if (e.Message == null)
      throw e;
      if (e.Message.Contains("connection was aborted"))
      return;
      if (e.Message.Contains("blocking operation"))
      return;
      if (e.Message.Contains("socket closed"))
      return;
      if (e.Message.Contains("read operation failed"))
      return;

      throw e;
      //---------------------------------//

      "e.Message" returns localized message,
      So thease exceptions are thrown to the outside.

      Attachments

        Activity

          People

            martin.veith Martin Veith
            tohzono Tohru OHZONO
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: