Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Lost components in my Delphi 4 project IDE

Status
Not open for further replies.

consi

Programmer
Nov 27, 2003
5
GB
I'm using Delphi 4 Update 3 on a Windows 98 machine. I have a project with just 5 forms which has been working happily for several months. Had a PC crash yesterday and now I've lost all but the panels and labels from my forms(no code lost, just all my TChart, Btn, StringGrid etc. components).
I've tried to re-install Delphi from scratch but that makes no difference. My backup projects behave the same so I'm assuming it's a problem with the IDE, not the project file.
I've found mention of similar problems on Delphi 5, but mine differs in that all the components are still there and I can use the object browser etc. Just don't want to have to re-design all my forms!

Anyone any clues?
 
try reinstalling the OS and then to restore a backup copy of the program
 
Sadly my crash yesterday entailed a re-install of Windows 98 as well, so I've already been there and done that :-( ! I've also checked that the Delphi directory is in the PATH environment variable and it is. Any other environment variables that Delphi might be expecting?

Any other ideas?
 
so you see the objects on the form while in Delphi but don't see them while the program is running? or you don't see them in either cases, just in Object Inspector?
 
Sorry, didn't explain myself clearly enough :)

I can't run the code because Delphi tells me that none of my declarations have an associated component and asks if I'd like to remove them. When I look at the form view for each form all my buttons etc. have disappeared (in fact, anything with associated code).
 
Additional information: For every component with associated code, when I try to compile and run I get the following message &quot;Field <FormName>.<ComponentName> does not have a corresponding component. Remove the Declaration?&quot;
 
make sure the path defined in envirnoment options, library, library path points to your delphi the delphi subdirectories bin and import... if that doesn't work I don't know what could be the source...
 
also check to see if you have browsing path(same place) set to:
$(DELPHI)\source\vcl;$(DELPHI)\source\rtl\Corba;$(DELPHI)\source\rtl\Sys;$(DELPHI)\source\rtl\Win;$(DELPHI)\source\Internet
 
I've managed to sort the problem. Uninstalled Delphi again, and manually removed various files left lurking around. Then reinstalled again, opened an old project file and then manually copied all the dfm files across.Worryingly, Delphi had just removed all the components from my current dfm files... :-( .

Thanks for the help anyway,

Jon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top