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.
At first I only copied the application files (.dpr, .dof, .cfg. res) and the .pas/.dfm files referred to in the Project Manager. Although some other custom .pas are needed (that are not included in the Program Manager) I left them out of the initial copy just so that the compiler could "tell" me which units I need so that I wouldn't be copying across old units that are no longer used. To my surprise the newly copied application files compiled first time - even though I knew there must be SOME pas files I did not copy across. I found that it compiled because units in the new folder where using units in the old folder (by doing ctrl-click to see where it was getting some items from that should've been undefined). I had to re-name the old folder in a desperate attempt to hide the old units (which worked) and proceed as I had originally expected. The weird thing is that there is NO reference to the old folder at all that I can find. Not in the Search Path, or any of the application files (.dpr, .dof, .cfg), or any of the pas files. How would it be finding my units in a completely different folder? Both of the source file folders are directly under "Delphi7\Projects". Ian.

