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

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

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

--- trunk/gr2lib/core/coreclasses/header/granny_reference.cs	2010/07/17 13:53:49	101
+++ trunk/gr2lib/core/coreclasses/header/granny_reference.cs	2010/07/17 13:54:18	102
@@ -28,10 +28,12 @@
                 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 @@
                 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
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22