Author: lluis
Date: 2007-12-12 20:54:13 -0500 (Wed, 12 Dec 2007)
New Revision: 91194

Modified:
   trunk/monodevelop/main/src/core/MonoDevelop.Core/ChangeLog
   
trunk/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core/SystemAssemblyService.cs
Log:
* MonoDevelop.Core/SystemAssemblyService.cs: Catch exceptions thrown by
  ParsePCFile. Fixes bug #346295.

Modified: trunk/monodevelop/main/src/core/MonoDevelop.Core/ChangeLog
===================================================================
--- trunk/monodevelop/main/src/core/MonoDevelop.Core/ChangeLog  2007-12-13 
01:49:56 UTC (rev 91193)
+++ trunk/monodevelop/main/src/core/MonoDevelop.Core/ChangeLog  2007-12-13 
01:54:13 UTC (rev 91194)
@@ -1,3 +1,8 @@
+2007-12-13  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
+
+       * MonoDevelop.Core/SystemAssemblyService.cs: Catch exceptions thrown by
+         ParsePCFile. Fixes bug #346295.
+
 2007-12-12  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
 
        * MonoDevelop.Core.addin.xml: Bump add-in versions.

Modified: 
trunk/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core/SystemAssemblyService.cs
===================================================================
--- 
trunk/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core/SystemAssemblyService.cs
  2007-12-13 01:49:56 UTC (rev 91193)
+++ 
trunk/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core/SystemAssemblyService.cs
  2007-12-13 01:54:13 UTC (rev 91194)
@@ -376,9 +376,14 @@
                                                continue;
        
                                        if (Directory.Exists (pcdir)) {
-                                                       foreach (string pcfile 
in Directory.GetFiles (pcdir, "*.pc")) {
+                                               foreach (string pcfile in 
Directory.GetFiles (pcdir, "*.pc")) {
+                                                       try {
                                                                ParsePCFile 
(pcfile);
                                                        }
+                                                       catch (Exception ex) {
+                                                               
LoggingService.LogError ("Could not parse file '" + pcfile + "'", ex);
+                                                       }
+                                               }
                                        }
                                }
                        }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to