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: 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 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 Search this Thread Display Modes
  #1 (permalink)  
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


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.

  #2 (permalink)  
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

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.


  #3 (permalink)  
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


I'm glad you found the problem.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
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

All times are GMT -4. The time now is 11:43 AM.

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