Aforge Program works only on Debug mode
am trying to make streaming video using aforge on visual studio windows forms in debug mode everything works well but after publishing it the picturebox that is used to show the video still white Here is the code
if (device != null && cboDevice.Items.Count != 0) { if (firstim != null) { pictureBox1.Image = firstim; } device = new VideoCaptureDevice(filter[cboDevice.SelectedIndex].MonikerString); device.NewFrame += new NewFrameEventHandler( Device_NewFrame); device.Start(); private void Form1_Load(object sender, EventArgs e) { filter = new FilterInfoCollection(FilterCategory.VideoInputDevice); foreach(FilterInfo dev in filter) cboDevice.Items.Add(dev.Name); cboDevice.SelectedIndex = 0; device = new VideoCaptureDevice(); } private void button4_Click(object sender, EventArgs e) { if (device != null && cboDevice.Items.Count != 0) { device = new VideoCaptureDevice(filter[cboDevice.SelectedIndex].MonikerString); device.NewFrame += Device_NewFrame; device.Start();
} }