Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error Starting Delphi When Debugging Design Time Package

I've encountered a problem starting a second instance of Delphi 2010 for debugging a design time package. Under Project Options|Debugger, I use "C:\Program Files\Embarcadero\RAD Studio\7.0\bin\bds.exe" as the host app with these parameters: "-pDelphi -nocache"

I get the following error message when I run the package:

enter image description here

If I continue, I get the following:

enter image description here

Then, if I continue, I get the following:

enter image description here

What am I doing wrong? This has always worked before. (I have repaired and uninstalled/reinstalled Delphi 2010.)

like image 923
Max Williams Avatar asked Jan 26 '13 01:01

Max Williams


1 Answers

You have a debug build of DDevExtensions installed. This version verifies its GetProcAddress calls to show missing symbols if a debugger is attached. DDevExtensions tries to hook into bcbide140.bpl (C++Builder) but doesn't find the symbols because the BPL isn't loaded (bds -pDelphi).It should skip the hooking but due to the debug build and an attached debugger it runs into the assertion.

The reason for the debug build lies in the build script of DDevExtensions: msbuild /p:Configuration=Release instead of msbuild /p:Config=Release. (So thanks for "reporting" this so I can fix the build script).

like image 78
Andreas Hausladen Avatar answered Nov 02 '22 23:11

Andreas Hausladen