Technical Information Database TI506D.txt Unknown runtime errors. What's error 163? Category :General Programming Platform :All Product :Pascal All Description: 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) Reference: 7/16/98 4:33:46 PM
Last Modified: 01-SEP-99