public void Dispose() { uploader.Dispose(); isRunning = false; try { pipeServer.Close(); } catch { } try { pipeServer.Dispose(); } catch { } try { pipeReaderThread.Abort(); } catch { } }
private void OnDisable() { clear.Dispose(); uploader.Dispose(); tex.DestroySelf(); }