crashc++builderaccess-violationc++builder-xe2c++builder-xe

C++Builder XE3 needs to be restarted after each run in the debugger or app crashes on next run


This is kind of weird, and I only seem to be seeing this on Windows 7 (when I build the app in windows 8 this does not seem to be happening). I see this with C++Builder XE through XE3. I will compile an app (statically linking the packages and the rtl), and then run it from the debugger. If I then make a change to the code and try to recompile and run the app, the compile appears to go ok, but the app crashes when it tries to start. If I close C++Builder and reopen it, then force it to rebuild either by doing a rebuild all, or making a minor change it compiles and runs fine. This is the case every time. I have tried in the past to switch to dynamically linking the rtl and that "appeared" to make the problem go away but I am not sure if that is a solid assumption. Has anyone seen this behaviour, and does anyone know how to resolve it. It is getting tiresome to have to restart the IDE all the time.

Edit: The crash happens before any of my code. Here is the call stack:

007d17b3; __delayLoadHelper2
007d7efa; __imageBase
007d308b; __wstartup

btw: there are no delay load dlls in this project.


Solution

  • According to the Embarcadero Forums, Try disabling "Incremental Linking".