/[RomCheater]/trunk/Win32/Sojaner.MemoryScanner/MemoryProviers/BaseMemoryProvider.cs
ViewVC logotype

Diff of /trunk/Win32/Sojaner.MemoryScanner/MemoryProviers/BaseMemoryProvider.cs

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

revision 427 by william, Tue May 28 12:33:14 2013 UTC revision 428 by william, Tue May 28 13:32:28 2013 UTC
# Line 68  namespace Sojaner.MemoryScanner.MemoryPr Line 68  namespace Sojaner.MemoryScanner.MemoryPr
68                  provider.ReadProcess = this.AcceptedProcess;                  provider.ReadProcess = this.AcceptedProcess;
69                  //provider.OnBytesRead += new BaseEventHandler<OnBytesReadEventArgs>(provider_OnBytesRead);                  //provider.OnBytesRead += new BaseEventHandler<OnBytesReadEventArgs>(provider_OnBytesRead);
70                  if (provider.ReadProcess == null) { logger.Error.WriteLine("{0}.OpenProvider() Could not attach to process: {1}", "", this.GetType().Name, this.AcceptedProcess.ToString()); return; }                  if (provider.ReadProcess == null) { logger.Error.WriteLine("{0}.OpenProvider() Could not attach to process: {1}", "", this.GetType().Name, this.AcceptedProcess.ToString()); return; }
71                  provider.OpenProcess();                  //provider.OpenProcess();
72                  isOpen = true;                  isOpen = true;
73                  isClosed = false;                  isClosed = false;
74              }              }
# Line 102  namespace Sojaner.MemoryScanner.MemoryPr Line 102  namespace Sojaner.MemoryScanner.MemoryPr
102              {              {
103                  //logger.VerboseDebug.WriteLine("CloseProvider(): System.Environment.StackTrace: {0}{1}", System.Environment.NewLine, System.Environment.StackTrace);                  //logger.VerboseDebug.WriteLine("CloseProvider(): System.Environment.StackTrace: {0}{1}", System.Environment.NewLine, System.Environment.StackTrace);
104                  if (provider == null) return;                  if (provider == null) return;
105                  provider.CloseHandle();                  //provider.CloseHandle();
106                  provider = null; // free any memory associated with the provider                  provider = null; // free any memory associated with the provider
107                  isClosed = true;                  isClosed = true;
108                  isOpen = false;                  isOpen = false;

Legend:
Removed from v.427  
changed lines
  Added in v.428

  ViewVC Help
Powered by ViewVC 1.1.22