void RecordingFailed(AudioVideoCaptureDevice sender, CaptureFailedEventArgs args) { Dispatcher.BeginInvoke(delegate { txtDebug.Text = "ERROR: " + args.ErrorCode; }); }
// 录像失败 void _captureDevice_RecordingFailed(AudioVideoCaptureDevice sender, CaptureFailedEventArgs args) { this.Dispatcher.BeginInvoke(delegate() { MessageBox.Show("error: " + args.ErrorCode.ToString()); }); }