Пример #1
0
 private void Close()
 {
     if (this.m_bInit)
     {
         ZyShareMem.UnmapViewOfFile(this.m_pwData);
         ZyShareMem.CloseHandle(this.m_hSharedMemoryFile);
     }
 }
Пример #2
0
 private void Close()
 {
     if (this.hVoid != IntPtr.Zero)
     {
         ZyShareMem.UnmapViewOfFile(this.hVoid);
         this.hVoid = IntPtr.Zero;
     }
     if (this.hMappingHandle != IntPtr.Zero)
     {
         ZyShareMem.CloseHandle(this.hMappingHandle);
         this.hMappingHandle = IntPtr.Zero;
     }
 }