Thursday, July 23, 2009

Using Delphi 2007/2009 IDE in Windows x64

I use Windows 7 x64 for daily Delphi development task.  If I press F9 to run my application in IDE mode, there is a great chance to hit this error:

‘Assertion failure: “(!”SetThreadContext failed”)” in '..\win32src\thread32.cpp at line 412
Continue execution?

Capture

If Press No or ESC key will close the whole IDE.  Pressing Yes may prompt for the same dialog more.

There is a temporary solution for this problem.  Please note that this problem might gone in Windows 7 RTM release.

Delphi 2007

  1. Using any hex editor to open %ProgramFiles(x86)%\CodeGear\RAD Studio\5.0\bin\bordbk105N.dll
  2. The file version should be 105.11.1.12533
  3. Look for hex string in the file
    01 00 48 74 47 80 3d change to 
    01 00 48 EB 47 80 3d

Delphi 2009

  1. Using any hex editor to open %ProgramFiles(x86)%\CodeGear\RAD Studio\6.0\bin\bordbk120N.dll
  2. The file version should be 120.903.17.15115
  3. Look for hex string in the file
    01 00 48 74 47 80 3d
    change to 
    01 00 48 EB 47 80 3d

Reference:

  1. Temporary Solution: Delphi 2009 and Windows 7

2 comments:

Olaf Monien said...

A credits link would have been nice ;-)

Unknown said...

Thanks a ton for this! this error has been driving me nuts!