/[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/16 23:35:21	86
+++ trunk/gr2lib/core/coretypes/implementation/Texture.cs	2010/07/17 05:10:22	95
@@ -4,6 +4,7 @@
 using gr2lib.core.helpers;
 
 using gr2lib.core.interfaces;
+using System.Diagnostics;
 
 namespace gr2lib.core.coretypes.implementation
 {
@@ -47,7 +48,8 @@
             }
             catch (Exception ex)
             {
-                Console.WriteLine(ex.ToString());
+                StackTrace st = new StackTrace(true);
+                Console.WriteLine(st.ToString() + "\n\n" + "Stack Trace: \n" + ex.ToString());
                 return default(Texture);
             }
         }
@@ -82,7 +84,8 @@
             }
             catch (Exception ex)
             {
-                Console.WriteLine(ex.ToString());
+                StackTrace st = new StackTrace(true);
+                Console.WriteLine(st.ToString() + "\n\n" + "Stack Trace: \n" + ex.ToString());
                 return default(Texture);
             }
         }

 

  ViewVC Help
Powered by ViewVC 1.1.22