I am getting an error after installing Delphi 2007 (Edit: This problem occurs in all Delphi versions from 2006 to 2010) that I can not figure out and have never seen before. After restarting I can launch the program without any problems, but if I were to close out of the program and start again it will give me the following error: "Cannot create file C:\Users\Admin\AppData\Local\Temp\EditorLineEnds.ttr". The process cannont access the file because it is being use by another process." "System" has a handle on this file that cannot be cleared unless I reboot. I can also correct the problem by renaming the file before I launch the program. I have tried reinstalling the program with no luck. Version installed: CodeGear? Delphi? 2007 for Win32? R2 Version 11.0.2902.10471. Operation System: Windows 7 Pro 64bit Update 08/14 13:35 EDTTried the following solutions, but still having the same file lock issue:
I will try reinstalling Windows from scratch and install Delphi before Windows updates to see if updates are truly the cause. My workaround for now is just renaming EditorLineEnds.ttr before launch Delphi. | |||||||||||||||||||||
|
There are three solutions to this that I am aware of:
Note: Microsoft withdrew this fix a few days later and issued a new one KB2984615 on 2014-08-27. Unfortunately this did not fix the issue for me. Maybe uninstalling KB2982791 first and then installing KB2984615 might work, but I haven't tried it. I wrote a simple program, that solves the issue for me: It uses FindFirstChangeNotification / FindNextChangeNotification and checks whether that file exists and if yes, moves it to a unique subdirectory in %temp%. The source code is available from sourceforge. | |||||||||||||||||||||
|
This is my bds_start.bat script running Delphi2006 on Win7-64bit system. I customized GabeMeister answer and similar script found in one of the links. I now can restart DelphiIDE without reboot. All ttr temp files are still locked by system so del command may not work. They are deletable once system is rebooted. It's however impossible to restart Delphi double clicking myproject.dpr project files. I was afraid to install IDEFixPack for D2006 because one of comments did not promise it to work. bds_start.bat
Running CBuilder change argument to -pCBuilder. Maybe best fix would be to create bds.exe replacement tool, del/move *.ttr file, run and passthrough cmd arguments to the original bds_original.exe file. This should enable *.dpr double click restarts. Or use BdsLauncher.exe which I think is regedit linked to *.dpr extension. Then process list had bds.exe name. | |||||
|
Here is another workaround from http://www.danielmagin.de/blog/index.php/2014/08/windows-update-disable-delphi-2007-2010/ Quote:
| |||||||||||||
|
Just to point out that the KB2982791 update has been withdrawn by Microsoft. The reasons cited appear to be problems with font rendering and system crashes and not this specific issue which, on the face of it, does appear to be the fault of Delphi and is merely exacerbated by the update. The KB article on the Microsoft site has been updated: http://support.microsoft.com/kb/2982791 Specifically these sections are of interest:
| |||||
|
The problem seems to be with Windows Updates installed on 13th August.I tried uninstalling KB2982791 as suggested by the previous poster, but that did not fix the problem.Uninstalling all Windows updates from 13th August did cure the problem however. | |||||
|
If you are on windows, I made a batch file shortcut for starting Delphi. Basically it is a batch file that changes the name of Here are the contents of my batch script: | |||||
|
The same for CodeGear Delphi 2009 on Windows 7 Uninstalling following windows update 2982791 2970228 wont help. Using IDE Fix Pack after that will help. | ||||
For Delphi 2007, install IDEFixPack 4.4 and add add the following environment variable to the system settings: IDEFixPack.DisabledPatches=DotNet.GlobalizationSearch Reboot and it should work. I have 2 desktops with Win 8.1 Pro and its working like a charm! | |||
dzEditorLineEndsFix - Cannot create file %Temp%\EditorLineEnd.ttr This is a small program that fixes the problem introduced by the Windows update KB2982791 with Delphi 2006 to 2010 that causes the error "Cannot create file %Temp%\EditorLineEnds.ttr".It works by moving the file to its own unique subdirectory whenever it is being created. | |||
Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.
Would you like to answer one of these unanswered questions instead?
联系客服