home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!cs.utexas.edu!wupost!csus.edu!netcom.com!gabriel
- From: gabriel@netcom.com (Gabriel Beccar-Varela)
- Subject: Problems with IOResult (TP.6)
- Message-ID: <h07mcp=.gabriel@netcom.com>
- Date: Sun, 16 Aug 92 00:26:41 GMT
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- Followup-To: This Group.
- Lines: 15
-
- I have problems with the IOResult function. It gives me a non-zero result
- when I know positively that there is no I/O problem (I confirmed this by
- running the same code with IOResult commented out). I suspect that my disk
- cache is causing the problem. The IOResult function works if I do a dummy
- call to it before calling it for real. Like this:
-
- error := IOResult;
- {$I-}
- rewrite(f);
- {$I+}
- if IOResult <> 0 then ...
-
- Any suggestions?
-
- Thank you.
-