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

Comparing trunk/gr2lib/core/coreclasses/header/granny_reference.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_reference.cs	2010/07/17 05:53:44	97
+++ trunk/gr2lib/core/coreclasses/header/granny_reference.cs	2010/07/17 13:54:18	102
@@ -28,10 +28,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_reference);
             }
         }
@@ -45,26 +47,28 @@ namespace gr2lib.core.coreclasses.header
                 managed.Offset = native.Offset;
                 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_reference);
             }
         }
 
-        #region INativePointer Members
+    #region INativePointer Members
         private IntPtr _NativePointer;
         public IntPtr NativePointer { get { return _NativePointer; } set { _NativePointer = value; } }
-        #endregion
+    #endregion
 
-        #region igranny_reference members
+    #region igranny_reference members
         private Int32 _SectionIndex;
         private Int32 _Offset;
 
         public Int32 SectionIndex { get { return _SectionIndex; } set { _SectionIndex = value; } }
         public Int32 Offset { get { return _Offset; } set { _Offset = value; } }
-        #endregion
+    #endregion
     }
 #endif
 }