Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6
This is the forum to discuss the Wrox book Beginning Visual Basic 2005 by Thearon Willis, Bryan Newsome; ISBN: 9780764574016
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 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 June 10th, 2007, 08:09 PM
Registered User
 
Join Date: Jun 2007
Location: Norristown, PA, USA.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 5 Page 151

Hi,

This line of code objCustomers.Add(objNewCustomer) gives me NullReference Exception, which make sense since Structures are passed by value, not by reference like a class. Coming from C# and going to help file om msdn it states that the Add() method of the ArrayList class expects a reference to an object.

I do not see how this code was able to run. Please advise.

Sincerely
Angelo
 
Old June 12th, 2007, 08:06 AM
Registered User
 
Join Date: Jun 2007
Location: Norristown, PA, USA.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What a dummy I am! After researching further on MSDN I found that I was wrong. I should of looked further. Wow, how stupid can I be. After looking at my code again and rechecking my option settings I found the problem.

Sincerely,


Angelo
 
Old June 12th, 2007, 08:15 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Location: Fuquay Varina, NC, USA.
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

Angelo,

I'm glad you found the problem.

Thearon




Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Chapter 2 First Page xtiano77 ASP.NET 3.5 Basics 1 May 7th, 2008 01:00 AM
Chapter 5 p, 151"select3" application nick_rasband@byu.net BOOK: Beginning Ruby on Rails 2 August 19th, 2007 08:45 PM
Chapter 5 page 151 aztek BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 4 July 27th, 2006 06:38 PM
Mistake in code on page 151 MythicalMe BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 May 22nd, 2006 01:11 PM
Chapter 1 Page 16 - Try It Out bradnerdhss BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 January 31st, 2006 02:11 PM





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