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

Comparing trunk/gr2lib/core/coreclasses/header/granny_header.cs (file contents):
Revision 102 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 System.Text;
6   using gr2lib.core.interfaces;
7   using gr2lib.core.helpers;
8   using System.Diagnostics;
9 + using gr2lib.core.exceptions;
10  
11   namespace gr2lib.core.coreclasses.header
12   {
# Line 45 | Line 46 | namespace gr2lib.core.coreclasses.header
46                  managed.NativePointer = pointer;
47                  return managed;
48              }
49 <            catch
49 >            catch (Exception ex)
50              {
51                  StackTrace st = new StackTrace(true);
52   #if  ENABLE_EXCEPTION_OUTPUT_TO_CONSOLE
53 <                Console.WriteLine(st.ToString());
53 >                Granny2ExceptionWriter.WriteToConsole(ex,st);
54   #endif
55                  return default(granny_header);
56              }
# Line 88 | Line 89 | namespace gr2lib.core.coreclasses.header
89                  //process header
90                  return managed;
91              }
92 <            catch
92 >            catch (Exception ex)
93              {
94                  StackTrace st = new StackTrace(true);
95   #if  ENABLE_EXCEPTION_OUTPUT_TO_CONSOLE
96 <                Console.WriteLine(st.ToString());
96 >                Granny2ExceptionWriter.WriteToConsole(ex,st);
97   #endif
98                  return default(granny_header);
99              }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines