ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/gr2lib/trunk/gr2lib/core/coreclasses/header/granny_header.cs
(Generate patch)

Comparing trunk/gr2lib/core/coreclasses/header/granny_header.cs (file contents):
Revision 97 by william, Sat Jul 17 05:53:44 2010 UTC vs.
Revision 102 by william, Sat Jul 17 13:54:18 2010 UTC

--- trunk/gr2lib/core/coreclasses/header/granny_header.cs	2010/07/17 05:53:44	97
+++ trunk/gr2lib/core/coreclasses/header/granny_header.cs	2010/07/17 13:54:18	102
@@ -45,10 +45,12 @@ namespace gr2lib.core.coreclasses.header
                 managed.NativePointer = pointer;
                 return managed;
             }
-            catch (Exception ex)
+            catch
             {
                 StackTrace st = new StackTrace(true);
-                Console.WriteLine(st.ToString() + "\n\n" + "Stack Trace: \n" + ex.ToString());
+#if  ENABLE_EXCEPTION_OUTPUT_TO_CONSOLE
+                Console.WriteLine(st.ToString());
+#endif
                 return default(granny_header);
             }
         }
@@ -86,10 +88,12 @@ namespace gr2lib.core.coreclasses.header
                 //process header
                 return managed;
             }
-            catch (Exception ex)
+            catch
             {
                 StackTrace st = new StackTrace(true);
-                Console.WriteLine(st.ToString() + "\n\n" + "Stack Trace: \n" + ex.ToString());
+#if  ENABLE_EXCEPTION_OUTPUT_TO_CONSOLE
+                Console.WriteLine(st.ToString());
+#endif
                 return default(granny_header);
             }
         }