BExplorer.Shell.ShellView.OnHandleDestroyed C# (CSharp) Method

OnHandleDestroyed() protected method

protected OnHandleDestroyed ( EventArgs e ) : void
e EventArgs
return void
    protected override void OnHandleDestroyed(EventArgs e) {
      try {
        this._FsWatcher?.Dispose();
        this.Notifications.UnregisterChangeNotify();
        this.LargeImageList.Dispose();
        this.SmallImageList.Dispose();
        var t = new Thread(() => {
          this._Mre.Reset();
          foreach (var thread in this._Threads) {
            if (thread.IsAlive) thread.Abort();
          }
        });

        t.Start();
      } catch (ThreadAbortException) { } catch { }
      base.OnHandleDestroyed(e);
    }
ShellView