An unhandled exception of type 'System.AggregateException' occurred in mscorlib.dll
DotImaging
private void button1_Click(object sender, EventArgs e) { Bgr<byte>[,] frame = null; string videoDir = "C:\\pic\\Sequence of mypic"; videoCapture = new ImageDirectoryCapture(videoDir, "*.jpg"); videoCapture.Open(); videoCapture.ReadTo(ref frame); if (frame == null) return; videoCapture.Seek(-1, SeekOrigin.Current); if (isROISelected) { Application.Idle -= videoCapture_InitFrame; Application.Idle += videoCapture_NewFrame; } else { frame.Draw(roi, Bgr<byte>.Blue, 3); } this.pictureBox.Image = frame.ToBitmap(); GC.Collect(); }
frame = null
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)