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

Comparing trunk/gr2lib/core/coreclasses/header/granny_magic.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.interfaces;
6   using gr2lib.core.helpers;
7   using System.Diagnostics;
8 + using gr2lib.core.exceptions;
9  
10   namespace gr2lib.core.coreclasses.header
11   {
# Line 34 | Line 35 | namespace gr2lib.core.coreclasses.header
35                  managed.NativePointer = pointer;
36                  return managed;
37              }
38 <            catch
38 >            catch (Exception ex)
39              {
40                  StackTrace st = new StackTrace(true);
41   #if  ENABLE_EXCEPTION_OUTPUT_TO_CONSOLE
42 <                Console.WriteLine(st.ToString());
42 >                Granny2ExceptionWriter.WriteToConsole(ex,st);
43   #endif
44                  return default(granny_magic);
45              }
# Line 57 | Line 58 | namespace gr2lib.core.coreclasses.header
58  
59                  return managed;
60              }
61 <            catch
61 >            catch (Exception ex)
62              {
63                  StackTrace st = new StackTrace(true);
64   #if  ENABLE_EXCEPTION_OUTPUT_TO_CONSOLE
65 <                Console.WriteLine(st.ToString());
65 >                Granny2ExceptionWriter.WriteToConsole(ex,st);
66   #endif
67                  return default(granny_magic);
68              }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines