Delphi XE3 EXE文件大小比Dephi大25倍 [英] Delphi XE3 EXE file size 25 times larger than Dephi 7

查看:181
本文介绍了Delphi XE3 EXE文件大小比Dephi大25倍的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为测试,我决定在Delphi中使用Delphi 4,5,6,7,2005,2010和XE3创建一个简单的Hello world应用程序。该应用程序只不过是一个TForm,一个带有OnClick事件的TButton,它调用ShowMessage('Hello world')。



以下是每个最终的EXE调试结果关闭:



有人可以解释为什么XE3版本比以前版本的Delphi平均值大26倍?



这里是XE3的项目设置:





解决方案

在更改为Release配置后,您可能只做了一个编译。尝试重建(不重新编译)。这将真正激活可执行文件上的Release配置,也可能是更小的文件大小。



对于我(Delphi XE2),Windows为同一个应用程序报告的大小发布配置)是:


1.52 MB(1,600,512个字节)



As a test I decided to create a simple "Hello world" app in Delphi using Delphi 4, 5, 6, 7, 2005, 2010 and XE3. The app is nothing more than a TForm, a TButton with an OnClick event that calls ShowMessage('Hello world').

Below are the results of each final EXE with debugging turned off:

Can someone explain why the XE3 version is 26 times larger than the average of the previous versions of Delphi?

Here are my project settings for XE3:

解决方案

You may have done a only a compile after changing to 'Release' configuration. Try to do a rebuild (not recompile). This will truly activate the Release configuration on the executable, and perhaps a smaller file size.

For me (Delphi XE2), the size reported by Windows for the same app (Release configuration) is:

1.52 MB (1,600,512 bytes)

这篇关于Delphi XE3 EXE文件大小比Dephi大25倍的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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