Question : Delphi 6 not recompiling .pas files

I am using Delphi 6 with all the necessary patches.

I have inherited some code, that is part of a really large code base.  There are multiple dpr's within a single bpg and hundreds of units/forms, some compiling into dll's and some compiling into exe's that call these dll's.

Here's the problem.  When I make edits to a unit and hit build project, the newly generated .exe doesn't include my changes.  Now here's the really strange part, I checked and the .dcu's and the .exe are recreated, but my changes aren't there when I run!!  

The only way I can get my changes to come through is if I do a build all.  Unfortunately build all takes about 10-15 minutes and I want to figure out how to avoid having to do this.  

Also, I thought Delphi recompiled changed files when you hit run and then does a rebuild.  This doesn't seem to be happening either for me.  Is there something different about how Delphi 6 handles recompilation/rebuilding?

Thanks,

sse  

Answer : Delphi 6 not recompiling .pas files

  1. Are you saving the files (try doing a save all)? 
  2. Are you just hitting the Run or are you doing a Building (not necessarily a Build All) first? 
  3. Make sure you have selected the Project/DPR that that you are making chenges to before you Run the application.  (In the Project Manager, the selected Project will be highlighted.  If you want to change a project and having the changes take effect, you need to make sure that you build that project.  If you have project A selected but some of Project B's units are showing and you change one of Project B's units, you may not see the impact of those changes.  (The IDE "thinks" you ae only working with Project A.) 
  4. Check your paths in the Project description.  I've sometimes had issues with a idscrepancy in the paths that resulted in things acting a bit wonky. 
Random Solutions  
 
programming4us programming4us