ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater/Serialization/SearchResultWriter.cs
(Generate patch)

Comparing trunk/RomCheater/Serialization/SearchResultWriter.cs (file contents):
Revision 405 by william, Thu Jun 21 14:38:54 2012 UTC vs.
Revision 429 by william, Tue May 28 15:16:05 2013 UTC

# Line 70 | Line 70 | namespace RomCheater.Serialization
70          }
71  
72          protected override void Dispose(bool disposing)
73 <        {
73 >        {            
74              base.Dispose(disposing);
75 <            // ensure ResultCount and ResultsWritten are equal
75 >            // ensure ResultCount and ResultsWritten are equal            
76              if (ResultCount != ResultsWritten)
77              {
78 <                throw new InvalidOperationException(string.Format("ResultCount does not match ResultsWritten: 0x{0:x8} != 0x{1:x8}", ResultCount, ResultsWritten));
79 <            }            
78 >                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   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines