Solved

[Fatal Error] Project1.dpr(1): File not found: 'System.pas' : Immediate Answer Needed Please :

Posted on 2004-09-12
15
1,584 Views
Last Modified: 2008-01-09
Hello All;

  I need an Immediate Answer on this one please, If possible.

System Config : Win2k SP4 installed
                        Delphi 6.02 Pro

When I try to run any units I get the following
[Fatal Error] Project1.dpr(1): File not found: 'System.pas'

This just started out of the Blue late last night.

Any idea's?

I have been told that I might have to reinstall Delphi?
In hopes that this is not the case.

I have checked the following.

Library Path:   $(DELPHI)\Lib   -- >  system.dcu
I even added : $(DELPHI)\Source\Rtl\Sys ( as a test )

Browsing Path :   $(DELPHI)\Source\Rtl\Sys  --> system.pas

I did a Repair on D6 from the Control Panel.
I reinstalled both " SP2 & Runtime SP2"
And still no help

If there is no fix for it, besides a reinstall.
Can someone please tell why it happens ?

Wayne
0
Comment
Question by:Wayne Barron
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 4
  • 2
  • +2
15 Comments
 
LVL 11

Expert Comment

by:calinutz
ID: 12040328
Why is it so difficult to reinstall delphi?
0
 
LVL 31

Author Comment

by:Wayne Barron
ID: 12040341
[Clinutz];

  [Quote]Why is it so difficult to reinstall delphi?[/Quote]

Installing Delphi is not the point here, What I need to know is "if" there is a way to fix this issue, without having to Reinstall.

&
What causes it to happen?
Even though it is in the Folder that is suppose to be in.

This is what I need to know.
Reinstalling it is an option, this I know, and this I can do, but there has to be someone out there that knows how it happens and why it happens.
0
 
LVL 5

Expert Comment

by:snehanshu
ID: 12041256
Not sure about this, but could it be that Win2K is restricting Delphi's access to the "$(DELPHI)" folders?
I think Win2k has that folder level permission stuff which you may want to check.
Just a thought.
...Shu
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 31

Author Comment

by:Wayne Barron
ID: 12041293
[snehanshu];

  Permissions on all the folders are set per normal,
But I did check to make sure that nothing got messed up.

I installed SP4 for Win2k the other day.
Who knows maybe it might have something to do with it, I can try uninstalling SP4 back SP3 and see if that gets it back? But do not know, as it has been installed for several days now, and this problem happened last night after I installed a VCL Component package.?? Sort of makes me wonder if maybe that package has something to do with it? That is something that I can check on first, before installing SP4....

 carrzkiss
0
 
LVL 5

Expert Comment

by:snehanshu
ID: 12041320
BTW,
  Does this registry key:
HKEY_CURRENT_USER\Software\Borland\Delphi\6.0\RootDir

  point to where $Delphi is supposed to be?
  That can be the problem too.
  Also, you may want to ensure that the frst entry in your libary path is "$(DELPHI)\Lib"
...Shu
0
 
LVL 31

Author Comment

by:Wayne Barron
ID: 12041394
Yes all keys are pointed correctly.
And the \lib
Is the 1st in the list.

Nothing problem now.

It is not even finding the VCL now ?
I think that it is a Complete Reinstall on this one.
Something has totally got it all messed up.

Going to end this post now.

carrzkiss

0
 
LVL 5

Expert Comment

by:snehanshu
ID: 12041481
Well,
  I guess that the package you wrote about did mess up things.
  I can't think of more causes, so can't help more.
...Shu
0
 
LVL 31

Author Comment

by:Wayne Barron
ID: 12041498
Yep, going to contact the vendor, and see what they say?

carrzkiss
0
 
LVL 5

Expert Comment

by:snehanshu
ID: 12041517
BTW, what VCL package did you install? Perhaps I can try doing the same and find out what happens (in case there's a trial version or something).
...Shu
0
 
LVL 31

Author Comment

by:Wayne Barron
ID: 12041648
LMD Tools v6.12.00 Pro
0
 
LVL 22

Accepted Solution

by:
Ferruccio Accalai earned 125 total points
ID: 12042027
Hi carrzkiss and shu :))
Maybe this could help: i got the same error some time ago after a new package installation. The problem was that the Library Path line was too long and this caused a Delphi misreading. After a deletion of some paths and the reduction of the Library Path Line length everything went fine again. So try deleting some obsolete path from the Library Path.
Hope this helps.
F68 ;-)
0
 
LVL 20

Expert Comment

by:Madshi
ID: 12042095
This error message usually occurs if the lib path is too long. Unfortunately Delphi has a hard limit on how long the library path may get. Try to get it shorter. E.g. by moving the LMD folders to the root of your harddisk and by naming them not too "long".
0
 
LVL 31

Author Comment

by:Wayne Barron
ID: 12043410
[Ferruccio68];

 Thank you so very much :-)
That was it,,,, well sort of.
The address to the directories that the components are located in was not too long. About 30-char-long. So that is rather short considering.

What I did was add in each path indivisually, and then run the Form. and everything was doing well until I get to
Folder = lmdsh20
Once it was added, I received the Error about " system.pas"
Took it out, and the Error was gone, and Compile per normal.
Then I skipped that one, and added in the
Folder = lmdsys10
And it did the same thing, gave me the Error "System.pas"

So what I did was took ALL  " .dcu & .dfm " Files and copied them
All over into a seperate folder, and pointed just to that folder.
And no more Error.

Though some of the components are giving me Error's when I put them
On the form.
Example Error:
[Fatal Error] Unit1.pas(7): Unit LMDComponent was compiled with a different version of LMDCustomComponent.TLMDCustomComponent

I will work on figuring it out later. But right now, I am a very  Happy person, as I do not have to Reinstall :-)

Thank you to everyone.

Shu = For trying to assist.
Ferruccio68 = For your Correct information and explaination on what
The problem could & may be. This is the information that I was searching for.

Thank You
carrzkiss
0
 
LVL 22

Expert Comment

by:Ferruccio Accalai
ID: 12043598
Very glad to have helped you :)
Just in addition:
i have several machines with delphi installed that i use to develop my projects (4 at my office, 2 at home and 1 other laptop), so as you can guess, the difficult is in differents path locations on these differents installation (some on C drive, some other on D with different folder locations). To have always the same project folder configuration i've mapped a X virtual drive in every machine, every one pointing to a different folder, but in my delphi environment the path starts always with X:\...., so it's the same on every PC...
This means that you could map your long paths to a X:\ virtual drive. The result will be a shorter Path string. (Just for example C:\Program Files\Borland\Delphi7\MyPackages could be mapped as X:\ so a Package in C:\Program Files\Borland\Delphi7\MyPackages\MyPackage.dpk will have a [PATH] X:\MyPackage.dpk...hope you understand what i mean)

F68 ;-)
0
 
LVL 31

Author Comment

by:Wayne Barron
ID: 12043778
Yes, I understand.
Except in my case it was not the path, but was a folder? Which
I still do not understand, but what I did cured the problem.
And if it was not for you telling me about the Folder Path's
I wold have never known about it, and would have reinstalled Delphi, which would have been a pain in the butt.

I have Delphi installed on my Laptop as well.
Both are installed on " E:\Borland\Delphi6 "
So I have a very easy way to reinstall Delphi so that it will not take
As long to do so.
Registry Backup, The Registry is such a fun place to go into if you know what you are doing.

 Take Care and thank you once again for youe great information.

carrzkiss
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Dynamically Created Query 3 80
firemonkey keyboard covers the controls 1 83
shape, triangle, dbctrlgrid 3 46
Broadcast a message using ICS 2 50
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question