Wrox Programmer Forums
|
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 September 25th, 2006, 10:19 AM
Authorized User
 
Join Date: Apr 2006
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

 
Old September 25th, 2006, 10:37 AM
Authorized User
 
Join Date: Apr 2006
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.

 
Old October 5th, 2006, 02:32 PM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
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





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 06: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 11:55 AM





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