title: Delphi 2006-2010 error: "Cannot create file C:\Users\Admin\AppData\Local\Temp\EditorLineEnds.ttr"
body: <p>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: </p>
  
  <p><strong>"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."</strong></p>
  
  <p>"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. </p>
  
  <p>I have tried reinstalling the program with no luck. </p>
  
  <p>Version installed: CodeGear™ Delphi® 2007 for Win32® R2 Version 11.0.2902.10471. 
  Operation System: Windows 7 Pro 64bit</p>
  
  <p><strong>Update 08/14 13:35 EDT</strong>
  Tried the following solutions, but still having the same file lock issue: </p>
  
  <ol>
  <li>Renamed Temp Directory to a directory I know had full security rights.  Files would be created in this directory when launching Delphi, but EditorLineEnds.ttr  would still get locked by SYSTEM and prevent me from relaunching.</li>
  <li>Uninstalled the following security updates KB2982791 and KB2976897, but this did not solve the problem.  I have suppressed windows updates for now and will try uninstalling all security patches for 8/13.  </li>
  <li>Uninstalled Delphi completely and re-installed.  Problem still occurs after re-installing everything. </li>
  </ol>
  
  <p>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.</p>