/// <summary> /// Close the map handle of the memory map. /// </summary> /// <remarks> /// CloseMapHandle(); /// </remarks> public void CloseMapHandle() { if (_mmHandle != IntPtr.Zero) { Win32Mmf.CloseHandle(_mmHandle); } }
/// <summary> /// Close the memory mapped file. /// </summary> /// <remarks> /// Close(); /// </remarks> public void Close() { CloseMapHandle(); if (_hFile != IntPtr.Zero) { Win32Mmf.CloseHandle(_hFile); } System.GC.SuppressFinalize(this); }