[BCB] SetThreadContext failed

"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?
---------------------------
BCB2009 的 Debug 機制在 Windows 7 x64 下不相容;
即使您用相容模式一樣不行。
在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:
  1. Close Delphi
  2. Locate bordbk120N.dll (C:\Program Files (x86)\CodeGear\RAD Studio\6.0\bin)
  3. Make a backup copy
  4. Check step 3
  5. Open bordbk120N.dll in a Hex editor (UltraEdit works fine)
  6. Search for “01 00 48 74 47 80 3D
  7. Make sure this is found once only
  8. Replace “74” with  “EB
  9. Save
  10. Restart Delphi. Error should be gone.
This might work on older Delphi versions as well, but I did not test that yet.


留言