예제 #1
0
 protected override void Dispose(bool disposing)
 {
     try
     {
         // Explicitly flush the changes.  The OS will do this for us anyway, but not until after the
         // MemoryMappedFile object itself is closed.
         if (disposing && _view != null && !_view.IsClosed)
         {
             Flush();
         }
     }
     finally
     {
         try
         {
             if (_view != null)
             {
                 _view.Dispose();
             }
         }
         finally
         {
             base.Dispose(disposing);
         }
     }
 }
예제 #2
0
 private void Dispose(bool disposeManagedResources)
 {
     if (_view != null)
     {
         _view.Dispose();
     }
     _view = null;
 }
예제 #3
0
 protected override void Dispose(bool disposing)
 {
     try {
         if (disposing && m_view != null && !m_view.IsClosed)
         {
             Flush();
         }
     }
     finally {
         try {
             if (m_view != null)
             {
                 m_view.Dispose();
             }
         }
         finally {
             base.Dispose(disposing);
         }
     }
 }
예제 #4
0
 protected override void Dispose(bool disposing)
 {
     try
     {
         if (disposing && !_view.IsClosed)
         {
             Flush();
         }
     }
     finally
     {
         try
         {
             _view.Dispose();
         }
         finally
         {
             base.Dispose(disposing);
         }
     }
 }