/[gr2lib]/trunk/gr2lib/core/coretypes/implementation/ExporterInfo.cs
ViewVC logotype

Diff of /trunk/gr2lib/core/coretypes/implementation/ExporterInfo.cs

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

--- trunk/gr2lib/core/coretypes/implementation/ExporterInfo.cs	2010/07/17 13:53:49	101
+++ trunk/gr2lib/core/coretypes/implementation/ExporterInfo.cs	2010/07/17 13:54:18	102
@@ -37,10 +37,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(ExporterInfo);
             }
         }
@@ -57,10 +59,12 @@
             managed.exporterBuildNumber = native.ExporterBuildNumber;
             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(ExporterInfo);
             }
         }

 

  ViewVC Help
Powered by ViewVC 1.1.22