Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 5th, 2007, 09:13 PM
Authorized User
 
Join Date: Sep 2006
Location: , , .
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Loop problem in capturing image using webcam

Hi,

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..



 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Loop capturing image and generic error occured in labby C# 2005 0 December 22nd, 2006 02:55 AM
problem in capturing webcam image harini19 Java Basics 0 February 24th, 2006 04:46 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 02:49 AM
Create an image table using a loop nvillare Classic ASP Basics 1 February 4th, 2004 02:42 PM



All times are GMT -4. The time now is 05:43 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.