• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 870
  • Last Modified:

File I/O Errors

I am using D3 and the help file on I/O Errors is not very comprehensive. I could only find some of the error codes, for example in the EInOutError topic, there are about 8-10 (eg 2 - file not found, etc) and in the I/O Errors topic, I found some more.

I have encountered other errors in my application, eg I/O Error 32 which I couldn't find the reference for. Can anyone tell me where I can get the full documentation on File IO Errors?

Regards
Keith
0
keithcsl
Asked:
keithcsl
1 Solution
 
ronit051397Commented:
This is from Borland Technical Informations:

     Pascal sometimes returns runtime errors that aren't listed
in the manuals. If you ever get an IORESULT code in the range
150-199, just subtract 131 from it and the look in your DOS
reference manual (or in the list presented below) for the
relevant critical errors.
     One error that users see quite often is number 163, which is
a sharing violation. It occurs when two users try to access the
same file at the same time.
     Here's a list of critical errors. The first column has the

error number in decimal format, the second has the number in hex,
and the third provides an explanation of the error:

DEC   HEX EXPLANATION
===============================================
01 -- 01  Invalid function number
02 -- 02  File not found
03 -- 03  Path not found
04 -- 04  Too many open files (no handles left)
05 -- 05  Access denied
06 -- 06  Invalid handle
07 -- 07  Memory control blocks destroyed
08 -- 08  Insufficient memory
09 -- 09  Invalid memory block address

10 -- 0A  Invalid environment
11 -- 0B  Invalid format
12 -- 0C  Invalid access mode (open mode is invalid)
13 -- 0D  Invalid data
14 -- 0E  Reserved
15 -- 0F  Invalid drive specified
16 -- 10  Attempt to remove current directory
17 -- 11  Not same device
18 -- 12  No more files
19 -- 13  Attempt to write on a write-protected diskette
20 -- 14  Unknown unit
21 -- 15  Drive not ready
22 -- 16  Unknown command
23 -- 17  CRC error
24 -- 18  Bad request structure length

25 -- 19  Seek error
26 -- 1A  Unknown media type
27 -- 1B  Sector not found
28 -- 1C  Printer out of paper
29 -- 1D  Write fault
30 -- 1E  Read fault
31 -- 1F  General failure
32 -- 20  Sharing violation
33 -- 21  Lock violation
34 -- 22  Invalid disk change
35 -- 23  FCB unavailable
36 -- 24  Sharing buffer overflow
37 -- 25  Reserved
38 -- 26  Unable to complete file operation (DOS 4.x)
39-49 -- 27-31 Reserved
50 -- 32  Network request not supported
51 -- 33  Remote computer not listening

52 -- 34  Duplicate name on network
53 -- 35  Network name not found
54 -- 36  Network busy
55 -- 37  Network device no longer exists
56 -- 38  NetBIOS command limit exceeded
57 -- 39  Network adapter error
58 -- 3A  Incorrect network response
59 -- 3B  Unexpected network error
60 -- 3C  Incompatible remote adapter
61 -- 3D  Print queue full
62 -- 3E  No space for print file
63 -- 3F  Print file deleted
64 -- 40  Network name deleted
65 -- 41  Access denied
66 -- 42  Network device type incorrect

67 -- 43  Network name not found
68 -- 44  Network name limit exceeded
69 -- 45  NetBIOS session limit exceeded
70 -- 46  Temporarily paused
71 -- 47  Network request not accepted
72 -- 48  Print or disk redirection is paused
73 -- 49-4F Reserved
80 -- 50  File already exists
81 -- 51  Reserved
82 -- 52  Cannot make directory entry
83 -- 53  Fail on INT 24
84 -- 54  Too many redirections
85 -- 55  Duplicate redirection
86 -- 56  Invalid password
87 -- 57  Invalid parameter

88 -- 58  Network device fault
89 -- 59  Function not supported by network (DOS 4.x)
90 -- 5A  Required system component not installed (DOS 4.x)
0
 
keithcslAuthor Commented:
Perfect! Just the document I needed. This will sure make life easier... :)

Thanks ronit

Keith
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now