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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clearing Delphi cache 1

Status
Not open for further replies.

ManishaS

Technical User
Feb 18, 2008
4
GB
Hi,
I am facing a weird problem. I had an ADO component (Named Say: XX) in my application. Since it was giving me some connection problems, I renamed it to Orig_XX and dragged and dropped a new ADO connection object and named it XX.The Code refers to the XX everywhere but when I am running the application ,it prompts me to enter the password first for XX and then for the Orig_XX component.
I have tried to remove all instances of Orig_XX. I have deleted that component from my project, searched the registry for any instance of the same and found that there is no occurence anywhere yet the application is still using that old object.
Any idea, where this getting cached and how can I remove this reference?

Thanks,
Manisha.
 
I'm guessing you renamed it within the IDE. Delphi will "remember" as links or hooks. You may also have not have changed all instances.

First, make sure all your .dfm files are saved as text.
2) Close Delphi.
3) Make a backup of your project directory.
4) Delete all dcu files.
5) Search for the text string in question in all files in project directory.
6) Make your changes (carefully!) with Notepad or any other text editor.
7) Reopen Delphi when done.

Good luck!

Roo
Delphi Rules!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top