//void ms_FrameReady(object sender, FrameReadyEventArgs e) //{ // //throw new NotImplementedException(); // drawbmp11(e.Bitmap); //} /// <summary> /// 停止通讯 /// </summary> public void Stop() { try { if (aw != null) { aw.Close(); } mjpegSource.NewFrame -= new CameraEventHandler(mjpegSource_NewFrame); mjpegSource.Yx = false; mjpegSource.Stop(); mjpegSource = null; motionDetecotor = null; GC.Collect(); } catch { } }
public void Stop() { mjpegSource.Stop(); aw.Close(); }