Run-time errors大部分Exitcode解释
pascal吧
全部回复
仅看楼主
level 11
http://www.freepascal.org/docs-html/user/userap4.html
自己翻译的,英语烂见谅
1 Invalid function number 无效功能号
An invalid operating system call was attempted.
尝试了一个无效的操作系统命令
2 File not found 文件未找到
Reported when trying to erase, rename or open a non-existent file.
当你删除,重命名或打开一个TMD根本不存在的文件时就会出现这个错误
3 Path not found 路径未找到
Reported by the directory handling routines when a path does not exist or is invalid. Also reported when trying to access a non-existent file.

4 Too many open files 打开了太多文件
The maximum number of files currently opened by your process has been reached. Certain operating syste***imit the number of files which can be opened concurrently, and this error can occur when this limit has been reached.
再略
5 File access denied 文件访问被拒绝
Permission to access the file is denied. This error might be caused by one of several reasons:
访问这个文件被拒绝,以下为几个可能的原因
Trying to open for writing a file which is read-only, or which is actually a directory.
文件只读 或 只是个目录
File is currently locked or used by another process.
被锁了,或是被另一个进程调用了
Trying to create a new file, or directory while a file or directory of the same name already exists.
新建了一个已经存在的同名文件或目录
Trying to read from a file which was opened in write-only mode.

Trying to write from a file which was opened in read-only mode.

Trying to remove a directory or file while it is not possible.
试图删除一个不准删除的文件或目录
No permission to access the file or directory.
没权限
6 Invalid file handle 无效文件句柄
If this happens, the file variable you are using is trashed; it indicates that your memory is corrupted.
如果发生这个错误,说明你在使用的文件变量已丢失,这表示你的内存出问题了
12 Invalid file access code 无效文件存取代码
Reported when a reset or rewrite is called with an invalid FileMode value.
当你 reset 或 rewrite 一个无效的文件变量时会发生这个错误
15 Invalid drive number 无效驱动器号
The number given to the Getdir or ChDir function specifies a non-existent disk.
略,基本不会遇到的错误
16 Cannot remove current directory 无法删除当前目录
Reported when trying to remove the currently active directory.
当你尝试删除当前激活的目录时
17 Cannot rename across drives 无法跨驱动器更改文件名
You cannot rename a file such that it would end up on another disk or partition.
顾名思义
100 Disk read error磁盘读取错误
An error occurred when reading from disk. Typically happens when you try to read past the end of a file.
101 Disk write error磁盘写入错误
Reported when the disk is full, and you’re trying to write to it.
102 File not assigned文件变量未赋值
This is reported by Reset, Rewrite, Append, Rename and Erase, if you call them with an unassigned file as a parameter.

2012年07月23日 07点07分 1
level 11
当你Reset, Rewrite, Append, Rename and Erase 一个没赋值的文件变量时出现这个错误
103 File not open文件未打开
Reported by the following functions : Close, Read, Write, Seek, EOf, FilePos, FileSize, Flush, BlockRead, and BlockWrite if the file is not open.

104 File not open for input 文件未用输入方式打开
Reported by Read, BlockRead, Eof, Eoln, SeekEof or SeekEoln if the file is not opened with Reset.
用Read, BlockRead, Eof, Eoln, SeekEof or SeekEoln 的时候要 reset
105 File not open for output文件未用输出方式打开
Reported by write if a text file isn’t opened with Rewrite.
write的时候要rewrite
106 Invalid numeric format无效数字格式
Reported when a non-numeric value is read from a text file, and a numeric value was expected.
从文本中读取了一个非数字的值,或一个已经存在的数值
——————致命错误——————
150 Disk is write-protected磁盘写保护
(Critical error)151 Bad drive request struct length未知单元
(Critical error)152 Drive not ready驱动器未准备好
(Critical error)154 CRC error in data数据CRC校验错
(Critical error)156 Disk seek error磁盘定位错误
(Critical error)157 Unknown media type未知媒体类型
(Critical error)158 Sector Not Found扇区末找到
(Critical error)159 Printer out of paper 打印机缺纸(**!)
(Critical error)160 Device write fault设备写入失败
(Critical error)161 Device read fault设备读取失败
(Critical error)162 Hardware failure硬件故障
(Critical error)200 Division by zero 被0除
The application attempted to divide a number by zero.
201 Range check error 范围检查错误
If you compiled your program with range checking on, then you can get this error in the following cases:
如果你编译时打开了范围检查选项,那么你就会在以下情况遇到这种错误:
An array was accessed with an index outside its declared range.
数组越界
Trying to assign a value to a variable outside its range (for instance an enumerated type).
给一个变量赋了超过这个变量范围的值(例如一个枚举类型)
202 Stack overflow error堆栈溢出错误
The stack has grown beyond its maximum size (in which case the size of local variables should be reduced to avoid this error), or the stack has become corrupt. This error is only reported when stack checking is enabled.
堆栈超出了它的大小限制 (因此局部变量应该尽量小,以避免出现这个错误),或者是堆栈已经损坏。这个错误只会在打开了堆栈检查时提示
203 Heap overflow error堆溢出错误
The heap has grown beyond its boundaries. This is caused when trying to allocate memory explicitly with New, GetMem or ReallocMem, or when a class or object instance is created and no memory is left. Please note that, by default, Free Pascal provides a growing heap, i.e. the heap will try to allocate more memory if needed. However, if the heap has reached the maximum size allowed by the operating system or hardware, then you will get this error.
堆超出了它的边界。这是会发生在当你使用 New, GetMem or ReallocMem 分配内存时 或一个类 或对象 在没有剩余内存创建时。 请注意,一般来说 FreePascal 提供一个尽可能多的堆,也就是说 如果需要的话会分配更多的内存给堆。然而,如果堆达到了操作系统或硬件所允许的最大值,那么还是会嗝屁。
(关于堆栈具体意思,这个帖子非常好懂,比课本好百倍
https://tieba.baidu.com/p/764166047

2012年07月23日 07点07分 2
level 12
exitcode=
314 LZ解释一下。。为什么我按Ctrl+C就直接退出程序,而不是暂停。。。
2012年10月06日 14点10分 4
level 12
这个不错,就是太深了
2013年01月01日 08点01分 5
[滑稽]
2017年10月12日 12点10分
1