If it is a bug, fill a report. Otherwise feel free to comment here.
Sorry, could not find lazarus 1.4 RC1 version in bug report system (1.2.7 SVN being the latest)...
BUG:
Category: compiler;
Reproducibility: always;
Platform/system/version: Windows 7 64 bit SP1
Lazarus version: 1.4 RC1 64 bit
Summary:
Project exe file cannot be overwritten.
Description:
When I create a project & compile it, the compiled exe file cannot be overwritten and the second compile fails, requiring me to delete each compiled exe before re-compiling.
When exiting lazarus and loading the project again compilation works normally and exe is overwritten.
Sometimes this bug appears for saved projects with the same result but this is not 'always' reproducible. Seems that reboot after saving the project removes the bug permanently from the given project.
Project1.exe does not appear in taskmanager and may be deleted in a regular way. The next compiled project exe also cannot be overwritten.
Steps to reproduce:
1. Create an empty project (application).
2. Save all to a known place.
3. Compile.
4. Change the project (any change for recompilation, e.g. add an additional variable in var section).
5. Compilation fails.
Hint: (11030) Start of reading config file E:\lazarus\fpc\2.6.4\bin\x86_64-win64\fpc.cfg
Hint: (11031) End of reading config file E:\lazarus\fpc\2.6.4\bin\x86_64-win64\fpc.cfg
Free Pascal Compiler version 2.6.4 [2015/02/14] for x86_64
Copyright (c) 1993-2014 by Florian Klaempfl and others
(1002) Target OS: Win64 for x64
(3104) Compiling project1.lpr
(9022) Compiling resource V:\Temp\2\lib\x86_64-win64\project1.obj
(9015) Linking project1.exe
V:\Temp\2\project1.lpr(20,1) Error: (9003) Can't create object file: project1.exe
V:\Temp\2\project1.lpr(20,1) Fatal: Can't create executable project1.exe
Fatal: (1018) Compilation aborted
Error: E:\lazarus\fpc\2.6.4\bin\x86_64-win64\ppcx64.exe returned an error exitcode (normal if you did not specify a source file to be compiled)