Skip to main content

Free Pascal运行时错误

· 8 min read

Run time errors
   Applications generated by Free Pascal might generate Run time error when certain abnormal conditions are detected in the application. This appendix lists the possible run time errors and gives information on why they might be produced.

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.

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 currently opened files by your process has been reached. Certain operating systems limit 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 accessing the file is denied. This error might be caused by 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.

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 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.

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.

105 File not open for output 文件未用输出方式打开
Reported by write if a text file isn’t opened with Rewrite.

106 Invalid numeric format 无效数字格式
Reported when a non-numeric value is read from a text file, when 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 被零除
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 exlicitly 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.

204 Invalid pointer operation 无效指针操作
This you will get if you call Dispose or Freemem with an invalid pointer (notably, Nil)

205 Floating point overflow 浮点上溢出
You are trying to use or produce too large real numbers.

206 Floating point underflow 浮点下溢出
You are trying to use or produce too small real numbers.

207 Invalid floating point operation 无效浮点运算
Can occur if you try to calculate the square root or logarithm of a negative number.

210 Object not initialized 对象未初始化
When compiled with range checking on, a program will report this error if you call a virtual method without having called istr constructor.

211 Call to abstract method 调用抽象方法
Your program tried to execute an abstract virtual method. Abstract methods should be overridden, and the overriding method should be called.

212 Stream registration error 流登记错
This occurs when an invalid type is registered in the objects unit.

213 Collection index out of range 集合下标越界
You are trying to access a collection item with an invalid index (objects unit).

214 Collection overflow error 集合溢出
The collection has reached its maximal size, and you are trying to add another element (objects unit).

215 Arithmetic overflow error 算术上溢错误
This error is reported when the result of an arithmetic operation is outside of its supported range. Contrary to Turbo Pascal, this error is only reported for 32-bit or 64-bit arithmetic overflows. This is due to the fact that everything is converted to 32-bit or 64-bit before doing the actual arithmetic operation.

216 General Protection fault 一般保护性错误(存取非法)
The application tried to access invalid memory space. This can be caused by several problems:
Deferencing a nil pointer
Trying to access memory which is out of bounds (for example, calling move with an invalid length).

217 Unhandled exception occurred 未处理的例外情况发生了
An exception occurred, and there was no exception handler present. The sysutils unit installs a default exception handler which catches all excpetions and exits gracefully.

219 Invalid typecast 无效的TYPECAST
Thrown when an invalid typecast is attempted on a class using the as operator. This error is also thrown when an object or class is typecast to an invalid class or object and a virtual method of that class or object is called. This last error is only detected if the -CR compiler option is used.

227 Assertion failed error 主张失败错误
An assertion failed, and no AssertErrorProc procedural variable was installed.


【努力奋斗!】

· One min read

-我要尽力做好今天的事,

-实现今天的目标.

-我相信:一个今天胜过100个明天.

-明天是为懒汉保留的工作日,

-我不是懒汉;

-明天是失败者借口成功的日子,

-我不是失败者.

-我应该立即行动.







唠叨

· One min read

我的唠叨怎么关了


2007年QQ空间新的免费代码

· 5 min read

空间升级了 以前的不能用了. QQ空间新的免费代码

以后有什么免费的物品,我自己知道的话,和网上流传的我都会总结在这里的。使用方法, 首先点自定义,然后将代码复制下来,粘贴到浏览器的地址栏,按回车,再点保存即可。如果有某个代码被TX封了的话,真的不能使用,请大家告诉我,我会对一些内容进行删除.

3.0皮肤(其实现在用3.0的很少了,还是发一下吧): 名称:小小罗 javascript:window.top.space_addItem(1,5669,0,0,0,1,0);
名称:激情四射 javascript:window.top.space_addItem(1,5668,0,0,0,1,0);
名称:Rooney javascript:window.top.space_addItem(1,5667,0,0,0,1,0);
名称:Ballack javascript:window.top.space_addItem(1,5666,0,0,0,1,0);
名称:国旗 javascript:window.top.space_addItem(1,2250,0,0,1,1,0);
名称:橙色视觉 javascript:window.top.space_addItem(1,1328,0,0,0,1,0);
名称:河流 javascript:window.top.space_addItem(1,1304,0,0,0,1,0);
名称:少女情怀 javascript:window.top.space_addItem(1,1305,0,0,0,1,0);
名称:星悬月 javascript:window.top.space_addItem(1,1306,0,0,0,1,0);
名称:欲望小溪 javascript:window.top.space_addItem(1,1307,0,0,0,1,0);
名称:兰色韵律 javascript:window.top.space_addItem(1,1333,0,0,0,1,0);
名称:春天 javascript:window.top.space_addItem(1,1303,0,0,0,1,0);
名称:红 javascript:window.top.space_addItem(1,1330,0,0,0,1,0);
名称:彩色 javascript:window.top.space_addItem(1,1327,0,0,0,1,0);

4.0皮肤: QQ之声官方皮肤 javascript:window.top.space_addItem(1,15306,0,0,1,1,94); QQ三国官方皮肤 javascript:window.top.space_addItem(1,15166,0,80,0,0,94); 夜光 javascript:window.top.space_addItem(1,7510,0,80,0,0,94); 最美的花 javascript:window.top.space_addItem(1,7513,0,80,0,0,94); 那年的歌 javascript:window.top.space_addItem(1,7619,0,80,0,0,94); 如此的爱 javascript:window.top.space_addItem(1,4693,0,80,0,0,94); 幸福的故事 javascript:window.top.space_addItem(1,4703,0,80,0,0,94);

4.0免费皮肤的单色样式。 全橙样式 javascript:window.top.space_addItem(1,15306,0,80,0,0,93); 全蓝样式 javascript:window.top.space_addItem(1,15116,0,80,0,0,93); 全紫样式 javascript:window.top.space_addItem(1,15116,0,80,0,0,93); 淡淡粉色 javascript:window.top.space_addItem(1,7513,0,80,0,0,93); 全绿样式 javascript:window.top.space_addItem(1,7619,0,80,0,0,93); 全粉样式 javascript:window.top.space_addItem(1,4693,0,80,0,0,93); 全白样式 暂无 全黑样式(黄钻使用)javascript:window.top.space_addItem(1,13046,0,80,0,0,93);

导航(真的不是很好看): 摘星 javascript:window.top.space_addItem(13,5145,0,0,200,600,0); 流金岁月 javascript:window.top.space_addItem(13,5330,0,0,200,600,0); 深海奥妙 javascript:window.top.space_addItem(13,5003,0,0,200,600,0); 清甜爽口 javascript:window.top.space_addItem(13,4384,0,0,200,600,0);

播放器(很丑的三个): 免费播放器代码总集:(本来空间里能搜索到BLUE一款免费播放器,但是居然有朋友告诉我说现在搜索不到!!!没办法,直接用代码也能搞出来,送给那些在空间商城搜不到免费播放器的朋友。代码使用方法同上,播放器出来以后可在自定义状态下移动调整位置保存)

javascript:window.top.space_addItem(6,702,0,0,200,200,0); 木色 javascript:window.top.space_addItem(6,703,0,0,200,200,0); 水晶之恋 javascript:window.top.space_addItem(6,676,0,0,200,200,0); BLUE播放器

欢迎动画(第一个还可以的): 冲吧,跟斗云 javascript:window.top.space_addItem(14,4333,0,0,1,1,0); 欢迎来我家! javascript:window.top.space_addItem(14,4386,0,0,1,1,0); 与你分享 javascript:window.top.space_addItem(14,4387,0,0,1,1,0); 月光马 javascript:window.top.space_addItem(14,5077,0,0,1,1,0); 幽夜幕 javascript:window.top.space_addItem(14,5002,0,0,1,1,0); 分享 javascript:window.top.space_addItem(14,5329,0,0,1,1,0);

挂件: 健康快乐挂件代码: javascript:window.top.space_addItem(16,14430,0,0,200,200,0); 俺是有钱人挂件代码: javascript:window.top.space_addItem(16,14431,0,0,200,200,0); 金牛座挂件代码: javascript:window.top.space_addItem(16,14429,0,0,200,200,0); 乐肤洁 javascript:window.top.space_addItem(2,4965,0,0,1,1,0); 新挂件闪 (赠品)
javascript:window.top.space_addItem(16,16911,0,80,0,0,94);

足球主题的挂件七个 巴西万岁 javascript:window.top.space_addItem(2,5875,0,0,1,1,0); 加油法兰西 javascript:window.top.space_addItem(2,5876,0,0,1,1,0); 前进!葡萄牙 javascript:window.top.space_addItem(2,5877,0,0,1,1,0); 为意大利欢呼 javascript:window.top.space_addItem(2,5878,0,0,1,1,0); 我为德国狂 javascript:window.top.space_addItem(2,5879,0,0,1,1,0); 西班牙冲冲冲 javascript:window.top.space_addItem(2,5880,0,0,1,1,0); 英格兰必胜 javascript:window.top.space_addItem(2,5881,0,0,1,1,0);

清除QQ空间所有物品,让QQ空间一片空白代码 javascript:window.top.space_addItem(2,1,5,4,1,0,1);

QQ空间隐藏自定义横幅_新的代码 javascript:window.top.space_addItem(19,11999,0,0,200,200,0);

QQ空间板块右移代码 javascript:window.top.space_addItem(1,皮肤代码,移动距离,80,0,0,94); 皮肤代码编号如何获取: 去装扮空间- - 皮肤-- 找到喜欢的,右键属性,编号在地址当中。 距离建议更改为50-200 ,100最佳 大家用一下就知道了,挪动版面位置保存一下就可以了。

QQ空间背景固定代码_新版 (建议使用这个.效果就出来了) javascript:window.top.space_addItem(1,皮肤编号,0,80,0,0,123); 显示4.0皮肤底层bg部分的背景固定代码 javascript:window.top.space_addItem(1,皮肤编号,0,80,0,0,124);

飘浮物反飘代码: javascript:window.top.space_addItem(5,66,0,3,0,0,02);

在横幅上刷人生果代码(前提:花匠学徒以上的4.0空间,注意:会丢失空间标题栏) javascript:window.top.space_addItem(19,6011,0,0,200,200,0);

隐藏导航 javascript:window.top.space_addItem(12,1,0,0,0,0,1) 显示导航 javascript:window.top.space_addItem(13,1,0,0,0,0,1)

这些都是我从网上收集的 看完不回的不是好Q虫!!!!!!