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

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

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

--- trunk/gr2lib/core/coretypes/implementation/Material.cs	2010/07/17 13:53:49	101
+++ trunk/gr2lib/core/coretypes/implementation/Material.cs	2010/07/17 13:54:18	102
@@ -31,10 +31,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(Material);
             }
         }
@@ -60,10 +62,12 @@
                 managed.ExtendedData = native.ExtendedData;
                 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(Material);
             }
         }

 

  ViewVC Help
Powered by ViewVC 1.1.22