Delphi:出现消息“不存在属性持久性”的EReadError [英] Delphi: EReadError with message 'Property Persistence does Not Exist'
问题描述
我用Delphi 7编写的程序可以编译,但是运行时它会给我错误消息:
My program written with Delphi 7 compiles OK, but when I run it it gives me the error message:
Project1.Exe引发消息为不存在属性持久性的异常类EReadError。进程已停止。
Project1.Exe raised exception class EReadError with Message 'Property Persistence does Not Exist'. Process Stopped.
这仅在我安装了用于该项目的TMS Component Pack之后才开始。谢谢您的帮助。
This only started after I installed the TMS Component Pack to use with this project. Thanks for any help.
推荐答案
- 在Delphi IDE中打开表单
- 使用Alt + F12编辑.DFM源
- 搜索 Persistence属性
- 使用 Persistence属性删除行
- Open the Form in Delphi IDE
- Use Alt + F12 to edit the .DFM source
- Search the "Persistence" property
- Delete the line with "Persistence" property
DFM示例:
SomeComponent1 = TSomeComponent
OtherProperty = OtherValue
Persistence = True
AnotherProperty = AnotherValue
end
您也可以使用Andreas Hausladen的出色DFMCheck 1.4工具。要检查其他任何缺少的属性,例如:
Also you can use the great DFMCheck 1.4 tool, by Andreas Hausladen. To check any other missing property like that:
http://andy.jgknet.de/blog/?page_id=177
这很可能是由编译后的&安装的软件包与实际的.pas文件不同步。如果您有源代码,则重建软件包可能会解决它。
This is most likely caused by the compiled & installed package being out of sync with the actual .pas file. If you have source code then rebuilding the packages will probably fix it.
这篇关于Delphi:出现消息“不存在属性持久性”的EReadError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!