/[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/03 20:03:06	485
+++ trunk/RomCheater/Docking/FloatingMemorySearcher.cs	2013/06/03 20:12:31	487
@@ -1816,7 +1816,7 @@
                     else
                     {
                         // need to get the address list
-                        using (SearchResultReader reader = new SearchResultReader(SearchGuid))
+                        using (SearchResultReader reader = new SearchResultReader(SearchGuid, true)) // delete the file on dispose
                         {
                             byte[] guid = SearchGuid.ToByteArray();
                             guid[guid.Length - 1]++; // increment the search guid by 1
@@ -1826,6 +1826,8 @@
                             {
                                 var items = reader.GetSearchAddressValueMatches((IAcceptsProcessAndConfig)this, SearchArgs, new Action<int, string>(UpdateProgress));
 
+                                reader.Dispose(); // delete the result file, if allowed
+
                                 foreach (var item in items)
                                 {
                                     switch (SearchArgs.DataType)

 

  ViewVC Help
Powered by ViewVC 1.1.22