/[xmltv_parser]/trunk/libxmltv/Core/XMLTVSource.cs
ViewVC logotype

Diff of /trunk/libxmltv/Core/XMLTVSource.cs

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

--- trunk/libxmltv/Core/XMLTVSource.cs	2013/03/09 11:28:41	77
+++ trunk/libxmltv/Core/XMLTVSource.cs	2013/03/09 11:36:24	78
@@ -6,6 +6,7 @@
 using System.Diagnostics;
 using System.Xml.Linq;
 using System.Reflection;
+using System.IO;
 
 namespace libxmltv.Core
 {
@@ -35,10 +36,13 @@
         }
         public XMLTVSource(XMLTVRuntimeInstance instance) : base(instance, XMLTVConstants.ROOT_ELEMENT)
         {
+            try {
             xmltv_logger.Verbose.Debug.WriteLine("Creating Instance of XMLTVSource");
             Create();
             xmltv_logger.Verbose.Debug.WriteLine("Created Instance of XMLTVSource '{0}'", SourceName);
             UpdateInstance();
+            }
+            catch (IOException ex) { Debug.WriteLine(ex.ToString()); }
         }
 
         private void UpdateInstance()

 

  ViewVC Help
Powered by ViewVC 1.1.22