Path: utzoo!attcan!uunet!lll-winken!ames!hc!pprg.unm.edu!unmvax!indri!polyslo!vlsi3b15!lehi3b15!lafcol!pilgrimk From: pilgrimk@lafcol.UUCP (Kenwyn A. Pilgrim) Newsgroups: comp.lang.pascal Subject: Re: Drive not ready message Summary: has to do with INT24 Message-ID: <878@lafcol.UUCP> Date: 27 Apr 89 17:33:25 GMT References: <2215@botter.cs.vu.nl> Organization: Academic Computer Center, Lafayette College Lines: 22 In article <2215@botter.cs.vu.nl>, cjveenm@tjalk.cs.vu.nl (Veenman CJ) writes: # # Question: # # When you try to open a file for reading or writing and that file is # on a drive which isn't ready yet, you will get a message that tells you > about your mistake. # # Using Turbo Pascal 3 this will happen after the RESET(file) or # REWRITE(file), but in TP4 it won't. At least when I am doing so. # # Why is that? # TP40 rets IN24 to its own interrupt procedure, hence Disk errors (Drive not ready, file not found, etc) would be treated like any other I/O error. If you don't like this then simply reset INT24 to its original interrupt! SetIntVec($24, SaveInt24); See p291. of TP40 manual -Kenwyn