/[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	2013/06/02 19:58:37	447
+++ trunk/RomCheater/Serialization/SearchResultWriter.cs	2013/06/02 20:22:04	448
@@ -15,7 +15,7 @@
     {
 
         private int ResultsWritten = 0;
-
+        protected override string TemporaryFolder { get { return SearchResultsConstants.SearchResultsFolder; } }
         //public SearchResultWriter() : base() { }
         public SearchResultWriter(int resultCount, Guid guid) : base(resultCount, guid) { WriteHeader(guid); }
         //public SearchResultWriter(string filename, Guid guid) : base(CreateFileName(filename,guid), guid) { WriteHeader(guid); }
@@ -95,7 +95,7 @@
 
         protected override void Dispose(bool disposing)
         {
-            if (Cancelled) { return; }
+            if (Cancelled) { binWriter.Close(); fileStream.Close(); return; }
             try
             {
                 base.Dispose(disposing);

 

  ViewVC Help
Powered by ViewVC 1.1.22