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

Comparing trunk/gr2lib/core/coretypes/implementation/Material.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 System.Text;
5   using gr2lib.core.helpers;
6   using gr2lib.core.interfaces;
7   using System.Diagnostics;
8 + using gr2lib.core.exceptions;
9   namespace gr2lib.core.coretypes.implementation
10   {
11  
# Line 31 | Line 32 | namespace gr2lib.core.coretypes.implemen
32                  managed.NativePointer = pointer;
33                  return managed;
34              }
35 <            catch
35 >            catch (Exception ex)
36              {
37                  StackTrace st = new StackTrace(true);
38   #if  ENABLE_EXCEPTION_OUTPUT_TO_CONSOLE
39 <                Console.WriteLine(st.ToString());
39 >                Granny2ExceptionWriter.WriteToConsole(ex,st);
40   #endif
41                  return default(Material);
42              }
# Line 62 | Line 63 | namespace gr2lib.core.coretypes.implemen
63                  managed.ExtendedData = native.ExtendedData;
64                  return managed;
65              }
66 <            catch
66 >            catch (Exception ex)
67              {
68                  StackTrace st = new StackTrace(true);
69   #if  ENABLE_EXCEPTION_OUTPUT_TO_CONSOLE
70 <                Console.WriteLine(st.ToString());
70 >                Granny2ExceptionWriter.WriteToConsole(ex,st);
71   #endif
72                  return default(Material);
73              }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines