示例#1
0
 public void Dispose()
 {
     if (Mem != null)
     {
         Mem.Dispose();
     }
 }
示例#2
0
        private void MemoryWatchThread(object sender)
        {
            while (IsGameRunning())
            {
                CheckModuleAddress();
                ReadGameMemory();
                SendEventGameMemory();
            }

            // Update process status to subscribers
            UpdateProcessStatus(false);

            // Clear memory object
            if (_memory != null)
            {
                _memory.Dispose();
            }

            _process     = null;
            _moduleGCore = IntPtr.Zero;

            // Reset the process check thread
            _processCheckThread = null;
            _processCheckThread = new Thread(new ParameterizedThreadStart(ProcessCheckThread));
            _processCheckThread.Start();
        }
示例#3
0
 public void Close()
 {
     mem.Dispose();
 }
示例#4
0
 public static void Dispose()
 {
     _memorySharp?.Dispose();
 }