public void Dispose() { if (Mem != null) { Mem.Dispose(); } }
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(); }
public void Close() { mem.Dispose(); }
public static void Dispose() { _memorySharp?.Dispose(); }