Exemple #1
0
 /// <summary>
 ///	Close the map handle of the memory map.
 /// </summary>
 /// <remarks>
 ///	CloseMapHandle();
 /// </remarks>
 public void CloseMapHandle()
 {
     if (_mmHandle != IntPtr.Zero)
     {
         Win32Mmf.CloseHandle(_mmHandle);
     }
 }
Exemple #2
0
 /// <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);
 }