Forums

ASP

This topic is locked

Null reference exception was unhandled.

Posted 24 Apr 2007 13:30:38
1
has voted
24 Apr 2007 13:30:38 nor nor posted:
Hi,

I've application to capture video of image using webcam, grab the still image and process it. It runs well until I put loop to regrab and the still images many times automatically.. and the error happened. The error is “ Null reference exception was unhandled.” I found that the error happened when I call one image file :
//// apply filter subtract===>>>> call file from out bin folder <<<<=====
System.Drawing.Bitmap subtract = filter1.Apply(image2);
In the code above, image2 is the name of file image that I retrieved from bin folder. However, if I not using loop, it can execute smoothly. I'm using C# Express edition. I’m stuck now. Could anybody help me please...

Reply to this topic