Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > BOOK: Beginning Visual C# 2005
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning Visual C# 2005
This is the forum to discuss the Wrox book Beginning Visual C# 2005 by Karli Watson, Christian Nagel, Jacob Hammer Pedersen, Jon D. Reid, Morgan Skinner, Eric White; ISBN: 9780764578472
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual C# 2005 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 August 28th, 2006, 03:04 PM
Registered User
 
Join Date: Aug 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chaper29, Exercise2 doesn't work

The source code for exercise 2 of Chaper29 networking can compile, however, couldn't run. Every time when I run it, the application is frozen.

Given error message for the code in server side:
do
                {
                    readBytes = clientStream.Read(buffer, 0, bufferSize);
                    memStream.Write(buffer, offset, readBytes);
                    offset += readBytes;
                } while (readBytes > 0);

The following is the error message:

Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.

If anyone knows how to fix it, please help.
Many thanks in advance.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 1 Ctrl+F5 don't work, F5 does work? jimboak BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 7 June 29th, 2008 03:46 AM
Able to Get it work !! rsrika C# 2005 0 March 8th, 2006 09:16 AM
Can't get the first example to work MikeH JSP Basics 1 July 22nd, 2005 03:36 PM





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