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 0x74) 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.

Advertisements

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

21 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

  8. its fantastic

    follow me too

    Comment by abitarin | January 17, 2010 | Reply

  9. I really like when people are expressing their opinion and thought. So I like the way you are writing

    Comment by WoobeDrefMolo | February 17, 2010 | Reply

  10. is very useful. You can visit it!

    Comment by Essay | March 22, 2010 | Reply

  11. thanks for fix, it’s work.

    Comment by kadir narin | May 10, 2010 | Reply

  12. Fantastic! congratulations for your work and ideas.
    Thank You
    Delphi Application Migration

    Comment by Jackob Oram | October 18, 2010 | Reply

  13. Greetings from Spain.
    I have tried your solution and it works properly. I have a tricky question: How do you guess it?

    Comment by Fran | March 24, 2011 | Reply

  14. Thank you. Its work very well.

    Comment by RudolfG | September 9, 2011 | Reply

  15. thank you haci

    Comment by turkey | February 28, 2012 | Reply

  16. Thank you, really works great now.

    Comment by Tnaki | April 21, 2012 | Reply

  17. Great Hack…works like a charm!

    Comment by Jeff Smith | May 9, 2012 | Reply

  18. THANKS!!!!!!!!!!

    Comment by Cyrille de Brébisson | October 16, 2012 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: