Hi Ian, > Due to starting a major new version of a program, > and wanting to leave the existing version "as is", > I created a new folder and copied source files > into the new folder. > ... > I found that it compiled because units in the new > folder were using units in the old folder
Yes, this happens to me too. (I'm using D5). The solution is to delete the DSK file from BOTH the old folder AND the new folder (if you copied it across). It took me ages to learn this! In fact to be really sure, it's best to delete every DSK file on your system. According to the Help, DSK files contain only the desktop setup -- window positions, sizes, etc., but it's obvious they contain a lot more than this. If you open a DSK file in a text editor you will see that it contains the full path to all your .pas files. It's a pain to have to re-arrange your windows from scratch when you start a derived project but it is the only way I've found to prevent D5 using source files from a previous project. I've looked in and deleted every other file, search path, library path, etc., I can find and the ONLY way to stop Delphi straying outside the new project folder is to delete the DSK files. A new one gets created when you exit Delphi. It might be possible to edit the DSK file instead of deleting it, but the safest way is to let Delphi create a new one. Hope this helps. regards, Martin.

