/[RomCheater]/trunk/RomCheater/Docking/FloatingMemorySearcher.cs
ViewVC logotype

Diff of /trunk/RomCheater/Docking/FloatingMemorySearcher.cs

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

--- trunk/RomCheater/Docking/FloatingMemorySearcher.cs	2013/06/02 19:58:37	447
+++ trunk/RomCheater/Docking/FloatingMemorySearcher.cs	2013/06/02 20:22:04	448
@@ -1149,7 +1149,7 @@
                     provider.OnBytesRead += new BaseEventHandler<OnBytesReadEventArgs>(search_provider_OnBytesRead);
                     provider.ReadProcessMemoryAtOnce(MemoryRangeStart, (MemoryRangeSize - MemoryRangeStart), writer);
                     provider.CloseProvider();
-                    if (SearchWorkerThread.CancellationPending) { provider_st.Stop(); st.Stop(); writer.CancelRequest(); e.Result = true; return; }
+                    if (SearchWorkerThread.CancellationPending) { provider_st.Stop(); st.Stop(); writer.CancelRequest(); writer.Dispose(); e.Result = true; return; }
                     writer.Dispose();
                 }
                 provider_st.Stop();
@@ -1822,6 +1822,10 @@
             IsFirstSearch = true;
             grpDataType.Enabled = true;
             btnReset.Enabled = false;
+
+            // delete any temporary search result files
+            SearchResultWriter.CleanupTemporarySearchResultFiles();
+
         }
         private void search_progress_updater_Tick(object sender, EventArgs e)
         {

 

  ViewVC Help
Powered by ViewVC 1.1.22