delphicompilationdelphi-6

Delphi 6 - Bugs disappear when I compile multiple times


My Delphi installation has been going downhill for the past few months. It seems though that every so often when I build a release it has strange errors in it which are resolved if I build, then compile, then build, compile, etc.

I've talked to another developer who thinks that this is a compiler error. This sort of degrading performance over time has happened on other computers to us too.

What does stack overflow think could be the problem.


Solution

  • What I've seen most is a case where multiple versions of the same units/dcus exist in different folders/paths, and depending on almost insignificant variations the compiler/linker uses a different path and picks different versions of the units to build the exe.
    I would make a huge Spring clean-up, scrutinize the lib/search paths, remove all dcus and make sure there is no duplicate versions of any unit.
    And, agreed, reinstalling Delphi could help start with a clean state.