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.
July 21, 2009 -
Posted by dmagin |
Embarcadero (CodeGear) stuff
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 |
That’s the way of delphi community 🙂
Think Delphi!
Comment by dmagin | July 22, 2009 |
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 |
sorry it is in bordbk105N.dll
Comment by dmagin | July 22, 2009 |
(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 |
it’s say that there will be no IE on their release in europe
Comment by @hmad | August 4, 2009 |
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 |
10x man u a the great
Comment by soledue | August 21, 2009 |
it works great.. i have codegear c++ 2009 + win7 64, this fix works, thanks a lot!!!
Comment by joe2009ar | November 2, 2009 |
Solved my problem – thanks!
Comment by JimR | November 14, 2009 |
its fantastic
follow me too
Comment by abitarin | January 17, 2010 |
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 |
is very useful. You can visit it!
Comment by Essay | March 22, 2010 |
thanks for fix, it’s work.
Comment by kadir narin | May 10, 2010 |
Fantastic! congratulations for your work and ideas.
Thank You
Delphi Application Migration
Comment by Jackob Oram | October 18, 2010 |
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 |
Thank you. Its work very well.
Comment by RudolfG | September 9, 2011 |
thank you haci
Comment by turkey | February 28, 2012 |
Thank you, really works great now.
Comment by Tnaki | April 21, 2012 |
Great Hack…works like a charm!
Comment by Jeff Smith | May 9, 2012 |
THANKS!!!!!!!!!!
Comment by Cyrille de Brébisson | October 16, 2012 |