"SetThreadContext failed" at Delphi 2009 / Windows 7 x64
Complier 執行完出現這樣的錯誤訊息!
---------------------------
bds.exe - bordbk120N.dll
---------------------------
Assertion failure: "(!"SetThreadContext failed")"
in ..\win32src\thread32.cpp at line 434
Continue execution?
---------------------------
bds.exe - bordbk120N.dll
---------------------------
Assertion failure: "(!"SetThreadContext failed")"
in ..\win32src\thread32.cpp at line 434
Continue execution?
---------------------------
BCB2009 的 Debug 機制在 Windows 7 x64 下不相容;
即使您用相容模式一樣不行。
在Olaf的網頁上也提供了一個程式修改的執行檔:
Delphi_2007_2009_WOW64_Debugger_Fix.zip。
即使您用相容模式一樣不行。
在Olaf的網頁上也提供了一個程式修改的執行檔:
Delphi_2007_2009_WOW64_Debugger_Fix.zip。
手動修改
Be careful! No waranties! I am not responsible for lost files etc.! Back up first!
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.
This might work on older Delphi versions as well, but I did not test that yet.
留言
張貼留言