Wrox Programmer Forums
|
BOOK: Professional Microsoft Robotics Studio ISBN: 978-0-470-14107-6
This is the forum to discuss the Wrox book Professional Microsoft Robotics Developer Studio by Kyle Johns, Trevor Taylor; ISBN: 9780470141076
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Microsoft Robotics Studio ISBN: 978-0-470-14107-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 February 22nd, 2009, 01:17 PM
Registered User
 
Join Date: Feb 2009
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default Class for Wait(int)???

When I created project instead of running CCRExample project in Chapter 2. I get this error when I build the application. (Page 34)

There is following error at Wait(2000);

Error 1 The name 'Wait' does not exist in the current context D:\Hari Nidamarthy\Documents\Visual Studio 2008\Projects\MyDSS1\MyDSS1\MyDSS1.cs 55 13 MyDSS1

What class do we need to use?
 
Old March 9th, 2009, 02:11 PM
GZM GZM is offline
Registered User
 
Join Date: Mar 2009
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Default Wait function

Take a look at p.72 of the book. Or simply insert
Code:
private void Wait(int millissec) { //instead of: //Thread.Sleep(millisec); //use this (see p.72 of the book) AutoResetEvent signal = newAutoResetEvent(false); Activate( Arbiter.Receive( false, TimeoutPort(millisec), delegate(DateTime timeout) { signal.Set(); } ) ); signal.WaitOne(); }
The Following User Says Thank You to GZM For This Useful Post:
harizon9 (March 10th, 2009)





Similar Threads
Thread Thread Starter Forum Replies Last Post
"Wait" function in VBA wscheiman Access VBA 15 December 18th, 2010 05:16 PM
wait for seconds pzmrcd C# 1 August 1st, 2007 02:06 PM
Wait In VB ashes0000 Beginning VB 6 5 February 6th, 2007 11:47 AM
Should I wait for .net 2 androoo ADO.NET 2 November 3rd, 2004 09:07 AM
help me! wait online EdmondWang All Other Wrox Books 1 December 18th, 2003 06:16 AM





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