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

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

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

--- trunk/gr2lib/core/coretypes/implementation/Image.cs	2010/07/16 23:35:21	86
+++ trunk/gr2lib/core/coretypes/implementation/Image.cs	2010/07/17 13:54:18	102
@@ -3,6 +3,7 @@
 using System.Text;
 using gr2lib.core.helpers;
 using gr2lib.core.interfaces;
+using System.Diagnostics;
 namespace gr2lib.core.coretypes.implementation
 {
     public class Image : IImage
@@ -26,9 +27,12 @@
             managed.NativePointer = pointer;
             return managed;
             }
-            catch (Exception ex)
+            catch
             {
-                Console.WriteLine(ex.ToString());
+                StackTrace st = new StackTrace(true);
+#if  ENABLE_EXCEPTION_OUTPUT_TO_CONSOLE
+                Console.WriteLine(st.ToString());
+#endif
                 return default(Image);
             }
         }
@@ -53,9 +57,12 @@
                 }
                 return managed;
             }
-            catch (Exception ex)
+            catch
             {
-                Console.WriteLine(ex.ToString());
+                StackTrace st = new StackTrace(true);
+#if  ENABLE_EXCEPTION_OUTPUT_TO_CONSOLE
+                Console.WriteLine(st.ToString());
+#endif
                 return default(Image);
             }
         }

 

  ViewVC Help
Powered by ViewVC 1.1.22