PDA

View Full Version : recompiling in delphi2005pro



noeska
28-12-2008, 06:34 PM
Delphi2005Pro
Recompile All
.dcu
unit cache

While fixing a bug i experienced some wierd behaviour of delphi2005pro.
I always assumed that a recompile all does just that. Hmm no not this time. When i ran the program again the debugger showed it was executing the old code. :? I guess the menu entry clear unit cache does have it existance. as after using that and another recompile the right code is executed.
'
I guess it has to do with the line i commented out is in a package that is used by the main application. Although both are in the same project. So my idea still is that a recompile all should compile both new.

Is that known behaviour with delphi20005pro?
Is there another way forcing a recompile?
Or is there a way disable the unit cache?
Can i add custom commands to the compile so that i can delete the .dcu files before compiling?

JernejL
28-12-2008, 07:27 PM
killing debugged process (CTRL+F2) and project -> build xxxx does the trick in delphi 7.