internal void UpdateModuleMemory(MemoryModuleDefDocument document)
        {
            uiDispatcher.VerifyAccess();
            if (document.TryUpdateMemory())
            {
                RefreshBodies(document);
            }

            // Always reset all breakpoints. If we set breakpoints (and fail) and later the module
            // gets decrypted and we then open the in-memory copy, TryUpdateMemory() will return
            // false ("no changes"), but the breakpoints will still need to be refreshed.
            var modules = GetModules(document.Process, document.Address);

            if (modules.Length > 0)
            {
                dbgModuleMemoryRefreshedNotifier.Value.RaiseModulesRefreshed(modules);
            }
        }