/[gr2lib]/trunk/gr2lib/core/coretypes/implementation/MIPLevel.cs
ViewVC logotype

Diff of /trunk/gr2lib/core/coretypes/implementation/MIPLevel.cs

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

--- trunk/gr2lib/core/coretypes/implementation/MIPLevel.cs	2010/07/17 14:52:17	105
+++ trunk/gr2lib/core/coretypes/implementation/MIPLevel.cs	2010/07/17 14:52:37	106
@@ -5,6 +5,7 @@
 using gr2lib.core.helpers;
 using gr2lib.core.interfaces;
 using System.Diagnostics;
+using gr2lib.core.exceptions;
 namespace gr2lib.core.coretypes.implementation
 {
     public class MIPLevel : IMIPLevel
@@ -27,11 +28,11 @@
             managed.NativePointer = pointer;
             return managed;
             }
-            catch
+            catch (Exception ex)
             {
                 StackTrace st = new StackTrace(true);
 #if  ENABLE_EXCEPTION_OUTPUT_TO_CONSOLE
-                Console.WriteLine(st.ToString());
+                Granny2ExceptionWriter.WriteToConsole(ex,st);
 #endif
                 return default(MIPLevel);
             }
@@ -64,11 +65,11 @@
                 }
                 return managed;
             }
-            catch
+            catch (Exception ex)
             {
                 StackTrace st = new StackTrace(true);
 #if  ENABLE_EXCEPTION_OUTPUT_TO_CONSOLE
-                Console.WriteLine(st.ToString());
+                Granny2ExceptionWriter.WriteToConsole(ex,st);
 #endif
                 return default(MIPLevel);
             }

 

  ViewVC Help
Powered by ViewVC 1.1.22