Jump to content
Badnaf

Broken Project Path References due to Misused “Save As” in Delphi (RAD Studio)

Recommended Posts

I am currently working on a School project using Firemonkey for the first time and I am loving it. I tried to move my entire project onto a flash drive but when I tried opening it at school, it kept showing an error that said something about not finding dictionary, so I through it might have been because the paths were not saved when I copied it so I opened the project at home and 'saved as' onto the flash drive but I realized it only saved the unit instead of the whole project, now when I launch the program, it shows the following error : image.thumb.png.19b96c514a79bdd7de0f923a3915ed69.png
 

This is what the program looks on the folder I saved
:image.thumb.png.9c077584357ba1b8de1f448cc103a3cf.png

This is the unit saved on the flash drive: 
image.thumb.png.88f8b041f3dcf423b4d1575161532b8a.png

 

 

I just want my program to run from my pc again like it was before but have no idea on how to correct paths and so on, any suggestions/idea or fixes you know someone please let me know.

Share this post


Link to post

First, make a backup of your Documents/Projects folder.

 

According to the error message, the Delphi IDE looks for your Tutum_U.pas file in the "Tutum Project" folder but you don't seem to have a "Tutum Project" folder in your Documents/Projects folder. Did you have all your files in the "Tutum Project" folder? You could try creating a new folder "Tutum Project" and move all your Tutum related files into that folder. In Delphi you open the project, browse to it in the "Tutum Project" folder.

 

Keeping all files that belong to a project in their own folder would make your folder more organised, especially when you will have several projects.

 

If you want to copy your project to a USB stick, copy the whole project folder.

Share this post


Link to post

I did exactly as u said but it did not work, before I could work on it with the flash drive in but now nothing is working

 

Share this post


Link to post

I'm not sure this will work or only cause more trouble... so definitely make a backup first.

 

Edit: This assumes that all your files are in one folder.

 

In the Delphi IDE open the .dproj file.

In the Projects panel (on the right side) you see the project name with .exe in bold.

If it doesn't have the .pas and .fmx files in the list then you can import them:

Right click on the .exe and click Add...

Open the .pas file (in this same folder). The .fmx file will appear under the .pas file.

File / Save as... and overwrite.

File / Save Project as... and overwrite.

 

Edited by Gabor64738

Share this post


Link to post

@Gabor64738 No, I think another way

First, throw away all the files except the DPR fmx res and pas.

Now load the DPR. Usually, this will be OK.

If not, there is another option. Edit the DPR so

All the paths will only be the file names.

With that said, you have here are all the project files.

And lastly, if this did not help, make a new project (name the new main to the old main)

and also the project name to the old one.

Change (copy) pas and fmx of the old main to the new one, then

add all other pas files to the project. Doen.

 

 

Edited by limelect
  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×