/[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	2012/06/20 10:51:25	396
+++ trunk/RomCheater/Docking/FloatingMemorySearcher.cs	2012/06/20 11:18:56	397
@@ -1041,6 +1041,7 @@
                 st_first_search.Start();
                 SearchArgs.Results.Clear();
                 r_ms.BaseStream.Seek(0, SeekOrigin.Begin);
+                List<ResultType<object>> results_list = new List<ResultType<object>>();
                 for (uint i = 0; i < buffered_mem.Length; i += STEP_SIZE)
                 {
                     ResultType<object> _tmp_result = new ResultType<object>();
@@ -1059,7 +1060,7 @@
                             if (SearchArgs.IsUnsignedDataType) { _tmp_result = new ResultType<object>(i, r_ms.ReadUInt64()); }
                             else { _tmp_result = new ResultType<object>(i, r_ms.ReadInt64()); } break;
                     }
-                    SearchArgs.Results.Add(_tmp_result);
+                    results_list.Add(_tmp_result);
                     double double_percent_done = 100.0 * (double)((double)i / (double)buffered_mem.Length);
                     int int_percent_done = (int)double_percent_done;
                     if (int_percent_done != Last_Whole_Percent_Done && i % ElementsBeforeDisplay == 0)
@@ -1075,8 +1076,9 @@
                         e.Cancel = true;
                         return;
                     }
-                    Application.DoEvents();
+                    //Application.DoEvents();
                 }
+                SearchArgs.Results.AddRange(results_list);
                 resultsprogress.Value = 100;
                 resultsprogress.Message = "";
                 //Application.DoEvents();

 

  ViewVC Help
Powered by ViewVC 1.1.22