Daniel Magin’s Weblog

My life in the Developers World

Windows 7 64bit Delphi Debugger Fix / Workaround

I found a thread about how to fix (ok not official) the Debugger if you run Delphi 2007 or Delphi 2009 on Windows 7 with 64bit. This is from a german Delphi Forum the DelphiPraxis.net one of the best forums in the world.

So i tanslated in english:

IT IS YOUR RISK TO DO THIS!!!

1) bordbk***.dll ( bordbk105N.dll – Delphi 2007; bordbk120N.dll – Delphi 2009)

open with HexEditor (make a copy first!!)

2) Search  HEX 01 00 48 74 47 80 3D

3) there is only one(!) HEX 01 00 48 74 47 80 3D  !!!

4) change 74 to EB

5) save

that’s all. now the debugger runs on Windows 7 64bit.

This small hack, change a conditional Jump (JZ also 0×74) in a unconditional jump (JMP or oxEB) so the GetLastError will not be called and the Debugger is not haging in a lock situation.

there is also a thread in english much more details on this TechNet Forum from Microsoft.

and thanks to olaf monien for infos :-)

reagards

daniel magin

Think Delphi!

Update

on the blog site from my friend Olaf Monien you can find now a automatic patch tool. it makes the changes for you with one click.

July 21, 2009 - Posted by dmagin | Embarcadero (CodeGear) stuff | | 10 Comments

10 Comments »

  1. Thank you vary much for sharing the knowledge. This thing drives me crazy. I forgot how bad things are without debugger.

    Comment by Binis | July 22, 2009 | Reply

    • That’s the way of delphi community :-)

      Think Delphi!

      Comment by dmagin | July 22, 2009 | Reply

  2. I couldn’t find the Hex signature “01 00 48 74 47 80 3D” in bordbk105.dll for Delphi 2007.

    However, this signature exist in bordbk105N.dll.

    Which one should I change?

    Comment by Chau Chee Yang | July 22, 2009 | Reply

    • sorry it is in bordbk105N.dll

      Comment by dmagin | July 22, 2009 | Reply

  3. (Repeat of the comment on Olaf Monien’s blog)

    Note that patching binaries might result in future Delphi 2009 updates leaving the patched binaries alone (i.e.: not updating them).

    Andreas Hausladen has a very cool set of IDE hotfixes that dynamically patch the IDE, so maybe he can talk him to include this in a future release?

    –jeroen

    Comment by jpluimers | July 22, 2009 | Reply

  4. it’s say that there will be no IE on their release in europe

    Comment by @hmad | August 4, 2009 | Reply

    • you can have in europe both edition with/without IE. But the error also comes with IE installed. But the error is not present anymore in waever. I hope Embarcadero will send us a offical patch for “older” versions.

      regards
      daniel

      Comment by dmagin | August 5, 2009 | Reply

  5. 10x man u a the great

    Comment by soledue | August 21, 2009 | Reply

  6. it works great.. i have codegear c++ 2009 + win7 64, this fix works, thanks a lot!!!

    Comment by joe2009ar | November 2, 2009 | Reply

  7. Solved my problem – thanks!

    Comment by JimR | November 14, 2009 | Reply


Leave a comment