/[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 10:27:39	73
+++ trunk/xmltv_parser/main.cs	2013/03/09 11:40:15	79
@@ -14,6 +14,7 @@
 using System.IO;
 using System.Runtime.Serialization.Formatters.Binary;
 using System.Threading;
+using System.Diagnostics;
 
 namespace xmltv_parser
 {
@@ -55,16 +56,20 @@
 
         private void ReportProgress(int progress)
         {
-            if (this.InvokeRequired)
+            try
             {
-                try
+                if (this.InvokeRequired)
                 {
-                    this.Invoke((Action)(delegate { ReportProgress(progress); }));
+                    try
+                    {
+                        this.Invoke((Action)(delegate { ReportProgress(progress); }));
+                    }
+                    catch { }
+                    return;
                 }
-                catch { }
-                return;
+                progress_status.Value = progress;
             }
-            progress_status.Value = progress;
+            catch (Exception ex) { Debug.WriteLine(ex.ToString()); }
         }
         private void gLog_ReportProgress(object sender, ReportProgressEventArgs e) { ReportProgress(e.Progress); }
 

 

  ViewVC Help
Powered by ViewVC 1.1.22