新的操作系统使用windows server 2003 enterprise,开发工具还是使用Borland Delphi 6 + Update 2, 在启动Delphi 的时候提示
Can't load package c:\program files\borland\delphi6\Bin\dclite60.bpl
如果是Delphi 7 会提示
Can't load package c:\program files\borland\delphi7\Bin\dclite70.bpl
因为以前都是使用windows 2000 server + delphi 6, 没有碰到这个问题,要不是系统出问题,我也不愿重装,太花时间了。查了半天没找到原因,上网查了一下,Borland的网站上找到了:
>> How can I turn off “Data Execution Prevent”? I have another problem with
>> Delphi 7 and W2k3 Server and I want to try what you've done. Where can I
>> find this option?
> It should be under the System properties, one of the advanced tab or
performance tab buttons.
Yes. On Windows 2003 it is under:
My Computer – Properties – Advanced – Performance Settings – Data
Execution Prevention
解决办法:
我的电脑 - 属性 - 高级 - 性能设置 - 数据执行保护, 加入delphi32.exe
数据执行保护 (DEP) 是一套软硬件技术,能够在内存上执行额外检查以帮助防止在系统上运行恶意代码。在 Microsoft Windows XP Service Pack 2 (SP2) 和 Microsoft Windows XP Tablet PC Edition 2005 中,由硬件和软件一起强制实施 DEP。
DEP 的主要优点是可以帮助防止数据页执行代码。通常情况下,不从默认堆和堆栈执行代码。硬件实施 DEP 检测从这些位置运行的代码,并在发现执行情况时引发异常。软件实施 DEP 可帮助阻止恶意代码利用 Windows 中的异常处理机制进行破坏。



