public void Cleanup(object sender, EventArgs e) { if (!base.DesignMode) { StopRenderLoop(); ScreenQuad.Dispose(); passThroughFilter.Dispose(); screenCapture.Dispose(); cDev.Dispose(); } }