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

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

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

--- trunk/RomCheater/Docking/FloatingRamDumperDialog.cs	2012/06/03 13:30:16	244
+++ trunk/RomCheater/Docking/FloatingRamDumperDialog.cs	2012/06/03 14:50:09	245
@@ -166,6 +166,7 @@
         {
             if (this.AcceptedProcess == null) return;            
             GenericMemoryProvider provider = new GenericMemoryProvider((IAcceptsProcessAndConfig)this);
+            provider.OpenProvider();
             int bytesReadSize;
             if (provider.WriteProcessMemoryToFile(filename, (uint)start, count, out bytesReadSize))
             {
@@ -174,7 +175,8 @@
             else
             {
                 MessageBox.Show(string.Format("Failed to dump memory (0x{0:x8}-0x{1:x8}) from pid=({3}) to file {2}", start, start + count, filename, string.Format("0x{0:x4} {1}.exe", this.AcceptedProcess.Id, AcceptedProcess.ProcessName)), "", MessageBoxButtons.OK, MessageBoxIcon.Error);
-            }        
+            }
+            provider.CloseProvider();
         }
         #endregion
     }

 

  ViewVC Help
Powered by ViewVC 1.1.22