Esempio n. 1
0
        private void FrmMain_FormClosed(object sender, FormClosedEventArgs e)
        {
            //销毁引擎
            int retCode = ASFFunctions.ASFUninitEngine(pImageEngine);

            Console.WriteLine("UninitEngine pImageEngine Result:" + retCode);
            this.Dispose();
            this.Close();
            MemoryUtil.ClearMemory();
        }
Esempio n. 2
0
        /// <summary>
        /// 窗体关闭事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void IdentityVerify_FormClosed(object sender, FormClosedEventArgs e)
        {
            //销毁引擎
            int retCode = ASFFunctions.ASFUninitEngine(pImageEngine);

            Console.WriteLine("UninitEngine pImageEngine Result:" + retCode);
            //销毁引擎
            retCode = ASFFunctions.ASFUninitEngine(pVideoEngine);
            Console.WriteLine("UninitEngine pVideoEngine Result:" + retCode);
            //销毁引擎
            retCode = ASFFunctions.ASFUninitEngine(pVideoImageEngine);
            Console.WriteLine("UninitEngine pVideoImageEngine Result:" + retCode);
            if (videoSource.IsRunning)
            {
                videoSource.SignalToStop(); //关闭摄像头
            }
            idCardHelper.CloseService();
            this.Dispose();
            this.Close();
            MemoryUtil.ClearMemory();
        }
Esempio n. 3
0
        private void pic_Video_Paint(object sender, PaintEventArgs e)
        {
            CompareImgWithIDImg(btm, e);

            MemoryUtil.ClearMemory();
        }