Delphi:出现消息“不存在属性持久性”的EReadError [英] Delphi: EReadError with message 'Property Persistence does Not Exist'

查看:229
本文介绍了Delphi:出现消息“不存在属性持久性”的EReadError的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

推荐答案


  1. 在Delphi IDE中打开表单

  2. 使用Alt + F12编辑.DFM源

  3. 搜索 Persistence属性

  4. 使用 Persistence属性删除行

  1. Open the Form in Delphi IDE
  2. Use Alt + F12 to edit the .DFM source
  3. Search the "Persistence" property
  4. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆