ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/gr2lib/trunk/gr2lib/core/coretypes/implementation/Texture.cs
(Generate patch)

Comparing trunk/gr2lib/core/coretypes/implementation/Texture.cs (file contents):
Revision 105 by william, Sat Jul 17 13:54:18 2010 UTC vs.
Revision 106 by william, Sat Jul 17 14:52:37 2010 UTC

# Line 5 | Line 5 | using gr2lib.core.helpers;
5  
6   using gr2lib.core.interfaces;
7   using System.Diagnostics;
8 + using gr2lib.core.exceptions;
9  
10   namespace gr2lib.core.coretypes.implementation
11   {
# Line 46 | Line 47 | namespace gr2lib.core.coretypes.implemen
47              managed.NativePointer = pointer;
48              return managed;
49              }
50 <            catch
50 >            catch (Exception ex)
51              {
52                  StackTrace st = new StackTrace(true);
53                  #if  ENABLE_EXCEPTION_OUTPUT_TO_CONSOLE
54 <                Console.WriteLine(st.ToString());
54 >                Granny2ExceptionWriter.WriteToConsole(ex,st);
55   #endif
56                  return default(Texture);
57              }
# Line 84 | Line 85 | namespace gr2lib.core.coretypes.implemen
85                  managed.ExtendedData = native.ExtendedData;
86                  return managed;
87              }
88 <            catch
88 >            catch (Exception ex)
89              {
90                  StackTrace st = new StackTrace(true);
91   #if  ENABLE_EXCEPTION_OUTPUT_TO_CONSOLE
92 <                Console.WriteLine(st.ToString());
92 >                Granny2ExceptionWriter.WriteToConsole(ex,st);
93   #endif
94                  return default(Texture);
95              }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines