Пример #1
0
 public void Dispose()
 {
     // The underlying ICorDebugHandle has a  Dispose() method which will free
     // its resources (a GC handle). We call that now to free things sooner.
     // If we don't call it now, it will still get freed at some random point after
     // the final release (which the finalizer will call).
     try
     {
         // This is just a best-effort to cleanup resources early.
         // If it fails, just swallow and move on.
         // May throw if handle was already disposed, or if process is not stopped.
         m_handleVal.Dispose();
     }
     catch
     {
         // swallow all
     }
 }