/[xmltv_parser]/trunk/xmltv_parser/main.cs
ViewVC logotype

Diff of /trunk/xmltv_parser/main.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/xmltv_parser/main.cs	2013/03/09 11:40:15	79
+++ trunk/xmltv_parser/main.cs	2013/03/09 12:45:23	84
@@ -56,20 +56,17 @@
 
         private void ReportProgress(int progress)
         {
-            try
+            if (this.InvokeRequired)
             {
-                if (this.InvokeRequired)
+                try
                 {
-                    try
-                    {
-                        this.Invoke((Action)(delegate { ReportProgress(progress); }));
-                    }
-                    catch { }
-                    return;
+                    this.Invoke((Action)(delegate { ReportProgress(progress); }));
                 }
-                progress_status.Value = progress;
+                catch { }
+                return;
             }
-            catch (Exception ex) { Debug.WriteLine(ex.ToString()); }
+            if (this.IsDisposed) { return; }
+            progress_status.Value = progress;
         }
         private void gLog_ReportProgress(object sender, ReportProgressEventArgs e) { ReportProgress(e.Progress); }
 

 

  ViewVC Help
Powered by ViewVC 1.1.22