Finding Address of Run-Time Error Line Using .LST or LINK /LI (45168)
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 for MS-DOS 7.0
- Microsoft Basic Professional Development System for MS-DOS 7.1
This article was previously published under Q45168 SUMMARY
This article describes how to find the line in the source code that
gives an "ERROR nn AT ADDRESS segment:offset" message from an .EXE
program at run time.
When you compile with the BC /a/Zi or /a/Zd option, the LINK /LI
(Linenumber) option creates a .MAP file that includes (at the bottom)
the relative address of every line in the source program. (A
documentation correction for the /LI option is shown farther below.)
However, instead of using LINK /LI, it is easier to use the .LST
listing file generated by the BC.EXE compiler to find the source line
at the address given in the run-time error message.
This information applies to Microsoft QuickBasic versions 4.00, 4.00b,
and 4.50, to Microsoft Basic Compiler versions 6.00 and 6.00b for
MS-DOS, and to Microsoft Basic Professional Development System (PDS)
versions 7.00 and 7.10 for MS-DOS.
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | KB45168 |
---|
|