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

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

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

--- trunk/gr2lib/core/coretypes/implementation/Texture.cs	2010/07/17 13:54:18	102
+++ trunk/gr2lib/core/coretypes/implementation/Texture.cs	2010/07/17 14:52:37	106
@@ -5,6 +5,7 @@
 
 using gr2lib.core.interfaces;
 using System.Diagnostics;
+using gr2lib.core.exceptions;
 
 namespace gr2lib.core.coretypes.implementation
 {
@@ -46,11 +47,11 @@
             managed.NativePointer = pointer;
             return managed;
             }
-            catch
+            catch (Exception ex)
             {
                 StackTrace st = new StackTrace(true);
                 #if  ENABLE_EXCEPTION_OUTPUT_TO_CONSOLE
-                Console.WriteLine(st.ToString());
+                Granny2ExceptionWriter.WriteToConsole(ex,st);
 #endif
                 return default(Texture);
             }
@@ -84,11 +85,11 @@
                 managed.ExtendedData = native.ExtendedData;
                 return managed;
             }
-            catch
+            catch (Exception ex)
             {
                 StackTrace st = new StackTrace(true);
 #if  ENABLE_EXCEPTION_OUTPUT_TO_CONSOLE
-                Console.WriteLine(st.ToString());
+                Granny2ExceptionWriter.WriteToConsole(ex,st);
 #endif
                 return default(Texture);
             }

 

  ViewVC Help
Powered by ViewVC 1.1.22