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 Display Modes
  #1 (permalink)  
Old September 25th, 2006, 10:19 AM
Authorized User
 
Join Date: Apr 2006
Location: Skaneateles, NY, USA.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 9 Debugging

I have been working through this book using Visual Studio 2005 Profession Ed. and Visual Basic 2005 Express Ed. depending which computer I am on. I have an issue with the Debugging try-it-out in chapter 9 step 17. When entering the following:

     'Demonstrates the use of the Using statement
     'Allows acquisition, usage and disposal of the resource
    lstData.Items.Add("Computer Class Properties:")
    Using objMemory As New Computer
        lstData.Items.Add("FreeMemory = " & objMemory.FreeMemory)
        lstData.Items.Add("TotalMemory = " & objMemory.TotalMemory)
    End Using

In VB 2005 Express this works correctly, however, in VB 2005 Pro it does not. I get an error "'TotalMemory' is not a member of 'Debugging.Computer'". Any reason as to why this will work in Express but not in VS? Hope this makes sense.

Thanks,
E

  #2 (permalink)  
Old September 25th, 2006, 10:37 AM
Authorized User
 
Join Date: Apr 2006
Location: Skaneateles, NY, USA.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just answerd my own question. I forgot to add the TotalMemory property to the end of the Computer class.

  #3 (permalink)  
Old October 5th, 2006, 02:32 PM
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

E,

I ran the code that I wrote for this chapter on VS 2005 Team Edition for Software Architects and did not have any problems. Did you copy the code from one machine to the other or did you write the code on both machines?

Thearon
 


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
Chapter 2 Configuring Remote Debugging GarethHowell BOOK: Professional SharePoint 2007 Development ISBN: 978-0-470-11756-9 1 July 8th, 2008 12:14 PM
error while debugging in chapter 15 great.early805 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 April 12th, 2008 02:27 AM
Error when debugging in chapter 3 diango BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 3 December 20th, 2005 05:06 PM
Debugging karthik_p VB Databases Basics 0 October 15th, 2005 01:06 PM
Debugging Louisa VB.NET 2002/2003 Basics 1 March 18th, 2004 10:55 AM



All times are GMT -4. The time now is 12:39 AM.


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