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

revision 285 by william, Tue Jun 5 01:54:33 2012 UTC revision 286 by william, Tue Jun 5 02:19:13 2012 UTC
# Line 917  namespace RomCheater.Docking Line 917  namespace RomCheater.Docking
917    
918          private void SearchWorkerThread_DoWork(object sender, DoWorkEventArgs e)          private void SearchWorkerThread_DoWork(object sender, DoWorkEventArgs e)
919          {          {
920                Stopwatch st = new Stopwatch();
921                st.Start();
922                e.Result = st;
923              //List<ResultType<object>> tmp_Results = new List<ResultType<object>>();              //List<ResultType<object>> tmp_Results = new List<ResultType<object>>();
924              List<ResultType<object>> second_tmp_Results = new List<ResultType<object>>();              List<ResultType<object>> second_tmp_Results = new List<ResultType<object>>();
925              const double _UPDATE_DELAY = 1024.0;              const double _UPDATE_DELAY = 1024.0;
# Line 1316  namespace RomCheater.Docking Line 1319  namespace RomCheater.Docking
1319    
1320          private void SearchWorkerThread_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)          private void SearchWorkerThread_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
1321          {          {
1322                if (!e.Cancelled)
1323                {
1324                    Stopwatch st = (e.Result as Stopwatch);
1325                    st.Stop();
1326                    logger.Debug.WriteLine("Search took a total of {0} seconds", st.Elapsed.TotalSeconds);
1327                }
1328                
1329              resultsprogress.Value = 100;              resultsprogress.Value = 100;
1330              logger.Debug.WriteLine(string.Format("\nResults Count -> 0x{0:x8}", SearchArgs.Results.Count));              logger.Debug.WriteLine(string.Format("Results Count -> 0x{0:x8}", SearchArgs.Results.Count));
1331    
1332              if (SearchArgs.Results.Count == 1) // debug message for 1 result using 32bit unsigned              if (SearchArgs.Results.Count == 1) // debug message for 1 result using 32bit unsigned
1333                  logger.Debug.WriteLine(string.Format("\nDebug: Found 1 result -> Address: 0x{0:x8} Value: 0x{1:x8}", SearchArgs.Results[0].Address, SearchArgs.Results[0].Value));                  logger.Debug.WriteLine(string.Format("Debug: Found 1 result -> Address: 0x{0:x8} Value: 0x{1:x8}", SearchArgs.Results[0].Address, SearchArgs.Results[0].Value));
1334    
1335             logger.Info.WriteLine(string.Format("\nFound 0x{0:x8} results", SearchArgs.Results.Count));             logger.Info.WriteLine(string.Format("Found 0x{0:x8} results", SearchArgs.Results.Count));
1336    
1337              if (SearchArgs.Results.Count <= MIN_NUMBER_OF_RESULTS_BEFORE_DISPLAY)              if (SearchArgs.Results.Count <= MIN_NUMBER_OF_RESULTS_BEFORE_DISPLAY)
1338              {              {

Legend:
Removed from v.285  
changed lines
  Added in v.286

  ViewVC Help
Powered by ViewVC 1.1.22