Delphi XE2:遇到“错误阅读表”在IDE中打开项目时 [英] Delphi XE2: Encounter "Error Reading Form" when opening a project in IDE

查看:64
本文介绍了Delphi XE2:遇到“错误阅读表”在IDE中打开项目时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将包含200个项目的项目组从Delphi XE升级到Delphi XE2。某些IDE设计组件尚未安装在Delphi XE2 IDE上。

I attempt to upgrade a project group containing 200 projects from Delphi XE to Delphi XE2. Some of the IDE design components aren't install on Delphi XE2 IDE yet.

在Delphi XE2 IDE中打开某些项目时遇到错误:

I encounter error when open some projects in Delphi XE2 IDE:

"Error Reading Form: Class TSynEdit not found. Ignore the error and continue?
Note: Ignoring the error may cause components to be deleted or property values
to be lost".

这是由于未在Delphi XE2 IDE中安装TSynEdit组件。

This is due to TSynEdit component is not install in the Delphi XE2 IDE.

我正处于升级阶段,需要估计我需要做多少工作。由于我没有打开包含缺少组件的表单,因此每当我打开项目时,这些消息都会一直提示。

I am in the stage of upgrading to estimate how much works I need to do. As I didn't open the form containing missing component, these messages keep prompt out whenever I open the project. It is very irritating.

在Delphi XE2的IDE之前,这些消息仅在我在IDE中打开表单时提示。当我在IDE中打开项目文件时,不会发生这种情况。但是,在Delphi XE2中,当我打开项目文件IDE时,这些消息会提示出来。

Prior to Delphi XE2's IDE, these messages prompt out only when I open the form in IDE. It doesn't happen when I open project file in IDE. However, in Delphi XE2, these messages prompt out when I open project file IDE.

推荐答案

正如David所建议的那样,现在我的评论为一个答案。

As David suggested, now my comment as an answer.

XE2在升级项目时会在内部打开所有表单。如果您不保存项目,则下次打开该项目时,它将再次升级。

XE2 internally opens all forms while upgrading the project. If you don't save the project it will be upgraded again the next time you open it.

因此,您自己发现:保存项目文件,但是不要t保存表单,因为这会破坏对不存在组件的引用。

So as you found by yourself: Save the project file, but don't save the forms as this would destroy the references to the non-existing components.

这篇关于Delphi XE2:遇到“错误阅读表”在IDE中打开项目时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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