Delphi 2007 - error running on 64-bit Windows

  • Posted on: 3 April 2013
  • By: Michał Turecki

Delphi 2007 is not new although it is the last non-unicode release of Delphi hence it is used frequently to maintain legacy code base.

And it has bugs. Some of them can be fixed by VCLFixPack and affect only compiled binaries.

Some are related to IDE and neither CnPack nor GExperts IDE extensions can fix them.

One of such bugs is related to debugging on 64-bit Windows. The problem is that after debugging session has ended, following error appears:

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

The error was thrown by bordbk105N.dll and it was discussed here (1) and here (2).

Unfortunately in (1) original URL has changed and (2) download links are dead so I attached a fix below as there's never enough of mirroring of the Internet. The executable is a patch tool which needs to be started as Administrator. It will modify bordbk105N.dll and fix the problem.