I am using Delphi 2007. When I try to create a new VCL Forms Application (File->New->VCL Forms Application) the IDE immediately responds with the above error.
I had this happen once before, and even thought I had asked for the answer on StackOverflow. But for the life of me can't find the answer. If I recall it had to do with an actual unit1.pas file being somewhere it should not have been.
unit1.pas
? I'd suspect it's in the default project folder (which is in yourMy Documents\RAD Studio
folder, IIRC), and there's a missingunit1.dfm
to go withunit1.pas
(or vice-versa, a missingunit1.pas
with aunit1.dfm
). It might also be an issue with an existingProject1.dpr
that is orphaned. I'd do a search forunit1.*
andproject1.*
, and move or rename the ones you find to see if the problem goes away. – Ken White