如何强制Delphi 7加载整个可执行文件? [英] How can I force Delphi 7 to load the whole executable?

查看:321
本文介绍了如何强制Delphi 7加载整个可执行文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这几乎是一个克隆的同样的问题为Delphi 2006 ,但我想要一个解决方案为Delphi 7.我也得到外部异常C0000006。可以使一个 Delphi 7 加载内存中的所有可执行文件。

This is almost a clone of the same question for Delphi 2006, but I'd like a solution for Delphi 7. I'm also getting the External Exception C0000006. Is it possible to make a Delphi 7 load all the executable in memory?

推荐答案

需要为您正在使用的任何构建自动化添加一个后置操作。找到一个修改可执行文件的PE标志的外部工具,并从构建脚本中调用该标志。显然,这必须在可执行文件构建完成后才能执行。

You'll need add a post-built action to whatever build automation you are using. Find an external tool that modifies the PE flags of an executable and call that from your build script. Obviously this must happen after the executable has been built.

我建议使用 editbin 从MS工具链。您可以将其作为Windows SDK的一部分进行安装。

I would recommend using editbin from the MS toolchain. You can get this installed as part of the Windows SDK.

推荐内容如下所示:

editbin /SWAPRUN:NET|CD yourexefile.exe

这篇关于如何强制Delphi 7加载整个可执行文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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