Xref: utzoo alt.msdos.programmer:254 comp.lang.pascal:2168 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!purdue!bu-cs!madd From: madd@bu-cs.BU.EDU (Jim Frost) Newsgroups: alt.msdos.programmer,comp.lang.pascal Subject: Re: Turbo Pascal, DOS runtime errors Message-ID: <35541@bu-cs.BU.EDU> Date: 30 Jul 89 18:22:57 GMT References: <1564@hjuxa.UUCP> Reply-To: madd@bu-it.bu.edu (Jim Frost) Followup-To: alt.msdos.programmer Distribution: na Organization: Boston University Distributed Systems Group Lines: 26 In article <1564@hjuxa.UUCP> mal@hjuxa.UUCP (LEACH) writes: >when I get a DOS runtime error in one of >my turbo pascal programs it generally looks something like (from memory): > >Dos Error 102 at 4380:2048 > >What I cannot figure out is how to get into turbo debugger and find >out what line of source code corresponds to 4380:2048. Does anyone >know how to get to that line of code? One of the compilation options is to stop compilation and leave the cursor on the source at a particular code address. I believe this option exists for TPascal 3.0 and am certain it exists in 4.0 and later. Since you mention the debugger I'm assuming you have 5.0. Poke around in the compilation options menu and you should find it. The kind of error which you're experiencing I try to trap using the $i- compilation directive; compile your program with that and check ioresult after any command that could fail (the manual lists them somewhere, in addition to some source fragments showing how to use ioresult). Your program can then warn you any way you like and you won't have to worry about it again. jim frost software tool & die madd@std.com