Wrox Programmer Forums
BOOK: Professional Web Parts and Custom Controls ASP.NET ISBN: 0-7645-7860-X
This is the forum to discuss the Wrox book Professional Web Parts and Custom Controls with ASP.NET 2.0 by Peter Vogel; ISBN: 9780764578601
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Web Parts and Custom Controls ASP.NET ISBN: 0-7645-7860-X section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 5th, 2007, 09:13 PM
Authorized User
Join Date: Sep 2006
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post
Default Loop problem in capturing image using webcam


I've application to capture video of image and grab the still image. It runs well until I put loop to regrab the still images many times automatically. It gives one exception error:
NullReferenceException was unhandled --> ”Object reference not set to an instance of an object".
I found that, this error come out because of calling file from outside of the main code of the programming.
These are the code that calling file from the outside of the main body of code programming.


//// apply filter subtract===>>>> call file from out bin folder <<<<=====
        System.Drawing.Bitmap subtract = filter1.Apply(image2);

// =====>>> call file ScanFirstStage <<<========
        //// create filter for extraction
        string scanning = "";
        ////apply filter for extraction
        ClassFirstStage.ScanFirstStage filter3 = new ClassFirstStage.ScanFirstStage(binary, out scanning);
        objectCount1.Text = scanning;
// ========>>> call file Scan2ndStage <<<=========
        // create filter for extraction
        string scanning2 = "";

        //apply filter for extraction
        Class2ndStage.Scan2ndStage filter7 = new Class2ndStage.Scan2ndStage(horImage, out scanning2);
        objectCount2.Text = scanning2;

I’m using C# express edition. Could anybody help me please..

The Following User Says Thank You to labby For This Useful Post:
calvinto (January 5th, 2018)

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in capturing webcam image harini19 Java Basics 1 January 5th, 2018 05:47 AM
Loop capturing image and generic error occured in labby C# 2005 0 December 22nd, 2006 02:55 AM
Capturing web camera image directly harini19 Java Basics 0 February 23rd, 2006 08:01 AM
saving image from webcam kvanchi General .NET 0 April 8th, 2005 01:49 AM
Create an image table using a loop nvillare Classic ASP Basics 1 February 4th, 2004 02:42 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.