Wrox Programmer Forums
|
BOOK: Wrox's Visual Basic 2005 Express Edition Starter Kit ISBN: 978-0-7645-9573-8
This is the forum to discuss the Wrox book Wrox's Visual Basic 2005 Express Edition Starter Kit by Andrew Parsons; ISBN: 9780764595738
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Wrox's Visual Basic 2005 Express Edition Starter Kit ISBN: 978-0-7645-9573-8 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 February 28th, 2006, 09:17 AM
Registered User
 
Join Date: Feb 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default NullReferenceException

While following Chapter 7, the following error occured:

"NullReferenceException was unhandled"
"Object reference not set to an instance of an object"

The error happened on the PersonalDetails.vb line 64 which reads:

"txtFirstName.Text = mPerson.FirstName"

Prompt reply would be appriciated.

Thanks!

 
Old March 30th, 2006, 09:38 PM
Wrox Author
 
Join Date: Jan 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What appears to have happened is that mPerson has not been initialized to an instance of the class. Can you tell me if you did this using the starter code for the chapter in the download or have you been working on the project right from the start of the book?

Also, if you could confirm which page number you're on, I can start to pinpoint where your code might be having the issue.

Thanks
AP






Similar Threads
Thread Thread Starter Forum Replies Last Post
System.NullReferenceException JayLou BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 1 April 6th, 2007 12:55 PM
System.NullReferenceException m_rajib74 C# 0 March 5th, 2007 04:50 AM
System.NullReferenceException lwheless BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 September 24th, 2006 05:47 AM
NullReferenceException error kcbon C# 0 October 16th, 2005 11:53 PM
NullReferenceException Kalashnikov General .NET 1 November 26th, 2004 01:15 AM





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