Exemplo n.º 1
0
 /// <summary/>
 protected virtual void Dispose(bool fDisposing)
 {
     Debug.WriteLineIf(!fDisposing, "****** Missing Dispose() call for " + GetType() + ". ****** ");
     if (fDisposing && !IsDisposed)
     {
         // dispose managed and unmanaged objects
         Close();
         if (m_waitHandle != null)
         {
             m_waitHandle.Close();
         }
         if (m_splashScreen != null)
         {
             m_splashScreen.Dispose();
         }
     }
     m_waitHandle   = null;
     m_splashScreen = null;
     IsDisposed     = true;
 }