"Device I/O Error" Error 57 with OPEN COM1: ; Use ON ERROR GOTO (28149)
The information in this article applies to:
- Microsoft QuickBASIC 2.0
- Microsoft QuickBASIC 2.01
- Microsoft QuickBASIC 3.0
- Microsoft QuickBASIC 4.0
- Microsoft QuickBASIC 4.0b
- Microsoft QuickBASIC 4.5
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0b
This article was previously published under Q28149 SUMMARY
When using the COM1: or COM2: serial communications port, a "Device
I/O Error" (Error 57) normally occurs due to parity, framing, or data
overrun problems.
Sometimes, the "Device I/O Error" occurs in compiled QuickBasic
programs more often than in the Microsoft GW-Basic Version 3.20 or
other Basic interpreters, especially when the programs are compiled
with any of the event-trapping options (/V or /W).
To alleviate this problem, trap the error 57 in an ON ERROR GOTO
error-handler routine and RESUME execution of your program.
This information applies to QuickBasic Versions 2.00, 2.01, 3.00,
4.00, 4.00b, and 4.50 and to Microsoft Basic Compiler Versions 6.00
and 6.00b for MS-DOS and MS OS/2.
Modification Type: | Minor | Last Reviewed: | 1/9/2003 |
---|
Keywords: | KB28149 |
---|
|