Microsoft KB Archive/31432

= Communications &quot;Device Timeout&quot;: Increase CS and DS Time Limit =

Article ID: 31432

Article Last Modified on 11/21/2006

-

APPLIES TO


 * Microsoft QuickBASIC 4.0b
 * Microsoft BASIC Compiler 6.0

-



This article was previously published under Q31432



SUMMARY
When you get run-time error 24, &quot;device timeout,&quot; you need to specify a greater time limit for CS (Clear To Send) and DS (Data Set Ready) in the OPEN statement.

The default for CS and DS is 1000 milliseconds or one second. This value can range from 0 to 65535. If zero is specified, the status is not checked.

This information applies to all versions of QuickBasic and to the Microsoft Basic Compiler Version 6.00 for MS-DOS and OS/2.

The following code will give a device time-out error if Clear to Send or Data Set Ready are not detected after two seconds: OPEN &quot;COM1:9600,N,8,1,CS2000,DS2000&quot; AS #1

Additional query words: QuickBas BasicCom

Keywords: KB31432

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.