Can someone please tell me what is this exception that’s been thrown all over my program? :wall:
takePicture()
{
Bitmap LCD = new Bitmap(SystemMetrics.ScreenWidth, SystemMetrics.ScreenHeight);
Program.camera.StartStreaming();
while (!Program.camera.isNewImageReady)
{
Thread.Sleep(200);
}
Program.camera.DrawImage(LCD, 0, 0, SystemMetrics.ScreenWidth, SystemMetrics.ScreenHeight);
Program.camera.StopStreaming();
}
#### Exception System.Exception - 0x00000000 (20) ####
#### Message:
#### Gadgeteer.Modules.GHIElectronics.SerCam::ReadBytes [IP: 002f] ####
#### Gadgeteer.Modules.GHIElectronics.SerCam::ReadFrameBuffer [IP: 0072] ####
#### Gadgeteer.Modules.GHIElectronics.SerCam::UpdateStreaming [IP: 003a] ####
A first chance exception of type ‘System.Exception’ occurred in GTM.GHIElectronics.SerCam.dl