Delphi2007 在Win10 下运行报错 Assertion failure

Delphi2007 原来安装在Win7 下 运行正常, 自从升级到Win10 ,新建工程运行然后关闭报错, 报错信息如下:

---------------------------

bds.exe - bordbk105N.dll

---------------------------

Assertion failure: "(!"SetThreadContext failed")"

in ..\win32src\thread32.cpp at line 412

Continue execution?

---------------------------

Yes No

---------------------------

解决方法:

Workaround steps:

Close Delphi

Locate bordbk120N.dll (C:/Program Files (x86)/CodeGear/RAD Studio/6.0/bin)

Make a backup copy

Check step 3

Open bordbk120N.dll in a Hex editor (UltraEdit works fine)

Search for “01 00 48 74 47 80 3D”

Make sure this is found once only

Replace “74” with “EB”

Save

Restart Delphi. Error should be gone

有的版本也可能是bordbk105N.dll 比如我的精简版本UP3 但是解决同上

原文地址:http://www.cnblogs.com/jxgxy/archive/2012/10/15/2725099.html

来自 <http://www.th7.cn/Program/delphi/201407/252615.shtml>