/[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

--- trunk/RomCheater/Serialization/SearchResultWriter.cs	2012/06/21 14:38:54	405
+++ trunk/RomCheater/Serialization/SearchResultWriter.cs	2013/05/28 15:16:05	429
@@ -70,13 +70,15 @@
         }
 
         protected override void Dispose(bool disposing)
-        {
+        {            
             base.Dispose(disposing);
-            // ensure ResultCount and ResultsWritten are equal
+            // ensure ResultCount and ResultsWritten are equal            
             if (ResultCount != ResultsWritten)
             {
-                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);
+                Logging.logger.Error.WriteLine(message);
+                throw new InvalidOperationException(message);
+            }
         }
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22