GUI/CrashReportForm.cs
changeset 106 6d6683c2895b
parent 98 4775bffe6173
child 128 cea5477b4d72
     1.1 --- a/GUI/CrashReportForm.cs	Fri Apr 30 20:53:40 2010 +0000
     1.2 +++ b/GUI/CrashReportForm.cs	Sat May 01 12:12:37 2010 +0000
     1.3 @@ -61,7 +61,7 @@
     1.4          exception = value;
     1.5          StringBuilder s = new StringBuilder();
     1.6          Version version = typeof(CrashReportForm).Assembly.GetName().Version;
     1.7 -        s.Append("Version: "); s.AppendLine(version.ToString());
     1.8 +        s.Append("Version: "); s.AppendLine(version.ToString());        
     1.9          s.AppendLine();
    1.10          s.AppendLine(exception.ToString());
    1.11          s.AppendLine();
    1.12 @@ -69,7 +69,13 @@
    1.13            s.AppendLine(exception.InnerException.ToString());
    1.14            s.AppendLine();
    1.15          }
    1.16 -        reportTextBox.Text = s.ToString();
    1.17 +        s.Append("Common Language Runtime: "); 
    1.18 +        s.AppendLine(Environment.Version.ToString());
    1.19 +        s.Append("Operating System: ");
    1.20 +        s.AppendLine(Environment.OSVersion.ToString());
    1.21 +        s.Append("Process Type: ");
    1.22 +        s.AppendLine(IntPtr.Size == 4 ? "32-Bit" : "64-Bit");
    1.23 +        reportTextBox.Text = s.ToString();        
    1.24        }
    1.25      }
    1.26  
    1.27 @@ -84,8 +90,9 @@
    1.28  
    1.29          string report =
    1.30            "version=" + HttpUtility.UrlEncode(version.ToString()) + "&" +
    1.31 -          "report=" + HttpUtility.UrlEncode(reportTextBox.Text +
    1.32 -          commentTextBox.Text);
    1.33 +          "report=" + HttpUtility.UrlEncode(reportTextBox.Text) + "&" +
    1.34 +          "comment=" + HttpUtility.UrlEncode(commentTextBox.Text) + "&" +
    1.35 +          "email=" + HttpUtility.UrlEncode(emailTextBox.Text);
    1.36          byte[] byteArray = Encoding.UTF8.GetBytes(report);
    1.37          request.ContentLength = byteArray.Length;
    1.38