Solved

File I/O Errors

Posted on 1998-01-13
2
843 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

747 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

14 Experts available now in Live!

Get 1:1 Help Now