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

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

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

--- trunk/gr2lib/core/coreclasses/header/granny_magic.cs	2010/07/17 13:53:49	101
+++ trunk/gr2lib/core/coreclasses/header/granny_magic.cs	2010/07/17 13:54:18	102
@@ -34,10 +34,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_magic);
             }
         }
@@ -55,10 +57,12 @@
 
                 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_magic);
             }
         }

 

  ViewVC Help
Powered by ViewVC 1.1.22