Jump to content
Sign in to follow this  
Antony Augustus

Frequent compilation errors

Recommended Posts

Hi,

 

I upgraded my Firemonkey project from Delphi 10.1 to Delphi 10.2 and Delphi 10.3 . In 10.2 and 10.3, I get frequent compilation errors like 

[DCC Error] - E1026 file not found  "G:\filepath", 

[DCC Fatal Error] - F2063 Could not compile used unit 'filename.pas'

 

1 out of 10 times is compiling successfully. What could be the issue? I couldn't find a solution till now. Any help would be appreciated.Screenshot attached

Delphi_Error.png

Share this post


Link to post

The same here. For it to occur less often, avoid use Build, just use Compile.

Share this post


Link to post

There is a switch in Option - you can try, whether it makes any difference:

 

"Optimization in source code file access for large projects through a unit cache, particularly when residing on remote drives. The feature is controlled by a new IDE option at Tools > Options > IDE > Compiling and Running > Enable unit directory cache, and is on by default. "

 

What about an antivirus? Years ago at school sometimes antivirus started to scan a file, locked it, and some applications complained about the file being inaccessible... It was always on a network drive.

Share this post


Link to post

Using the compile option for now. Disabled the Antivirus also. So far issue did not surface. Will tell you what caused the problem.

Share this post


Link to post

I get those errors sometimes, how i deal with it is to just save project and reopen it again and errors are gone.. I know that it is not cool way of fixing it but it works .. 

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
Sign in to follow this  

×