/[gr2lib]/trunk/gr2lib/core/coreclasses/header/granny_header.cs
ViewVC logotype

Diff of /trunk/gr2lib/core/coreclasses/header/granny_header.cs

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

--- trunk/gr2lib/core/coreclasses/header/granny_header.cs	2010/07/17 14:52:17	105
+++ trunk/gr2lib/core/coreclasses/header/granny_header.cs	2010/07/17 14:52:37	106
@@ -6,6 +6,7 @@
 using gr2lib.core.interfaces;
 using gr2lib.core.helpers;
 using System.Diagnostics;
+using gr2lib.core.exceptions;
 
 namespace gr2lib.core.coreclasses.header
 {
@@ -45,11 +46,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(granny_header);
             }
@@ -88,11 +89,11 @@
                 //process header
                 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(granny_header);
             }

 

  ViewVC Help
Powered by ViewVC 1.1.22