/[RomCheater]/trunk/RomCheater/Serialization/SearchResultWriter.cs
ViewVC logotype

Diff of /trunk/RomCheater/Serialization/SearchResultWriter.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 405 by william, Thu Jun 21 14:38:54 2012 UTC revision 429 by william, Tue May 28 15:16:05 2013 UTC
# Line 70  namespace RomCheater.Serialization Line 70  namespace RomCheater.Serialization
70          }          }
71    
72          protected override void Dispose(bool disposing)          protected override void Dispose(bool disposing)
73          {          {            
74              base.Dispose(disposing);              base.Dispose(disposing);
75              // ensure ResultCount and ResultsWritten are equal              // ensure ResultCount and ResultsWritten are equal            
76              if (ResultCount != ResultsWritten)              if (ResultCount != ResultsWritten)
77              {              {
78                  throw new InvalidOperationException(string.Format("ResultCount does not match ResultsWritten: 0x{0:x8} != 0x{1:x8}", ResultCount, ResultsWritten));                  string message = string.Format("ResultCount does not match ResultsWritten: 0x{0:x8} != 0x{1:x8} -- offset: 0x{2:x8}", ResultCount, ResultsWritten, ResultCount - ResultsWritten);
79              }                              Logging.logger.Error.WriteLine(message);
80                    throw new InvalidOperationException(message);
81                }
82          }          }
83      }      }
84  }  }

Legend:
Removed from v.405  
changed lines
  Added in v.429

  ViewVC Help
Powered by ViewVC 1.1.22