Solved

File I/O Errors

Posted on 1998-01-13
2
848 Views
Last Modified: 2012-06-21
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
Comment
Question by:keithcsl
2 Comments
 
LVL 5

Accepted Solution

by:
ronit051397 earned 50 total points
ID: 1356355
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
 
LVL 1

Author Comment

by:keithcsl
ID: 1356356
Perfect! Just the document I needed. This will sure make life easier... :)

Thanks ronit

Keith
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now