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

Comparing trunk/gr2lib/core/coretypes/implementation/ArtToolInfo.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 6 | Line 6 | using gr2lib.core.helpers;
6   using Microsoft.Xna.Framework;
7   using gr2lib.core.interfaces;
8   using System.Diagnostics;
9 + using gr2lib.core.exceptions;
10   namespace gr2lib.core.coretypes.implementation
11   {
12  
# Line 51 | Line 52 | namespace gr2lib.core.coretypes.implemen
52                  managed.NativePointer = pointer;
53                  return managed;
54              }
55 <            catch
55 >            catch (Exception ex)
56              {
57                  StackTrace st = new StackTrace(true);
58   #if  ENABLE_EXCEPTION_OUTPUT_TO_CONSOLE
59 <                Console.WriteLine(st.ToString());
59 >                Granny2ExceptionWriter.WriteToConsole(ex,st);
60   #endif
61                  return default(ArtToolInfo);
62              }
# Line 78 | Line 79 | namespace gr2lib.core.coretypes.implemen
79                  //managed.OnInvalidate();
80                  return managed;
81              }
82 <            catch
82 >            catch (Exception ex)
83              {
84                  StackTrace st = new StackTrace(true);
85   #if  ENABLE_EXCEPTION_OUTPUT_TO_CONSOLE
86 <                Console.WriteLine(st.ToString());
86 >                Granny2ExceptionWriter.WriteToConsole(ex,st);
87   #endif
88                  return default(ArtToolInfo);
89              }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines