Reputation: 21
Please can someone tell me the possible cause when I add an external webcam to this code to run (capture image) it throws exception:
An error occurred while capturing the video image. The video image will now be terminated, Object reference not set to an instance of an Object
Here is the link to the C# code I'm using in my application to capture image from webcam:
http://sites.google.com/site/webcamlibrarydotnet/winfrom-and-csharp-sample-code-and-download
Upvotes: 0
Views: 5425
Reputation: 65534
Ok, may I suggest the easiest solution to avoid that demo project on google code, even the author admits there might be problems.
Use a different example tha'ts been rated 4.5/5 stars and downloaded 230,000 times: C# Webcam Capture
Upvotes: 1