Beispiel #1
0
        private void FormIkarusMain_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (modem != null)
            {
                modem.dispose();
            }

            if (capture != null)
            {
                capture.Stop();
                capture.PreviewWindow.Dispose();
                capture.PreviewWindow = null;
                capture.Dispose();
                capture.DisposeSampleGrabber();
            }

            if (this.sender != null)
            {
                this.sender.Stop();
            }

            if (this.KmlWebServer != null)
            {
                this.KmlWebServer.Stop();
            }

            if (jthread != null)
            {
                jthread.Close();
            }

            if (antTracker != null)
            {
                antTracker.Close();
            }

            if (mapControl1 != null)
            {
                mapControl1.Destroy();
            }

            if (avi_writer != null)
            {
                avi_writer.avi_close();
            }
        }