Do Not Use DOS Interrupts to Terminate Compiled Programs (32274)
The information in this article applies to:
- 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
- Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.0
This article was previously published under Q32274 SUMMARY
The following information applies to QuickBasic Versions 4.00, 4.00b
and 4.50, to Microsoft Basic Compiler Versions 6.00 and 6.00b for
MS-DOS and MS OS/2, and to Microsoft Basic PDS Version 7.00 for MS-DOS
and MS OS/2.
Some DOS interrupts should not be invoked from QuickBasic programs.
For example, "Terminate With Return Code" (Interrupt 21H, function
4CH) can cause loss of the cursor the first time it is executed, then
a hard hang on a subsequent CALL.
QuickBasic must control its own termination to correctly return to
DOS. Please use the END statement in Basic rather than a DOS interrupt
to terminate a program.
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | KB32274 |
---|
|