451
General Software Discussion / Re: Webcam Signature 1.0 - My Submission for the DC Programming Contest
« on: June 25, 2008, 07:20 PM »I'm getting an unhandled exception when i choose "grab a frame":
"Object reference not set to an instance of an object"
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at System.Drawing.Bitmap..ctor(Image original)
at SampleGrabberNET.UnsafeBitmap..ctor(Bitmap bitmapRef)
at WebCam_Signature.MainForm.GetFullFrameBitmap()
at WebCam_Signature.FineTuneTrackColorsForm.GrabAFrameButton_MouseClick(Object sender, MouseEventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)-mouser (June 25, 2008, 04:13 PM)
Is your webcam turned on? I didn't realize that the program would throw an exception when the webcam is not available and you try to go into "Fine Tune Tracking Color". I will fix that in a bit. You can safely press the continue button if that pops up.