Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE    [ Add a report in this area ]  
Report #:  126921   Status: Resolved
Can't open delphi "Cannot create ... EditorLineends.ttr"
Project:  Delphi Build #:  2006, ... 2010
Version:    14.0 Submitted By:   Stephane Lariviere
Report Type:  Suggestion / Enhancement Request Date Reported:  8/13/2014 11:04:18 AM
Severity:    Serious / Highly visible problem Last Updated: 11/13/2014 4:51:31 PM
Platform:    All versions Internal Tracking #:   54487
Resolution: Retest (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: (3 Total Ratings)
5.00 out of 5
Total Votes: 2
Description
After Windows update, the second time i open Delphi, i have this error  "Cannot create ... EditorLineends.ttr". For open delphi i need to reboot windows.
Steps to Reproduce:
None
Workarounds
I try to delete EditorLineEnd.ttr in Temp dir, but i was used by a system proccess.
Attachment
None
Comments

Stephane Lariviere at 8/13/2014 11:55:21 AM -
I uninstall the last install of windows and everything look good for now

Stephane Lariviere at 8/13/2014 11:56:28 AM -
I uninstall the last update of windows and everything look good.

Daniel Magin at 8/14/2014 1:34:20 PM -
it is enough to disable
kb:2982791  
kb:2970228

more details see:

http://www.danielmagin.de/blog/index.php/2014/08/windows-update-disable-delphi-2007-2010/

Henrich Deppenmeier at 8/15/2014 12:56:35 AM -
Dear Tomohiro Takahashi,

this is not a third party (microsoft) issue - and it is in no way resolved by uninstallig Microsofts KB 2982791  and  KB 2970228 Patches :

KB2982791 states :

---
After you install this security update, fonts that are installed to a location other than the default fonts directory (%windir%\fonts\) cannot be modified when they are loaded into any active session. Attempts to change, replace, or delete these fonts will be blocked, and a "File in use" message will be presented.
---


KB2902791 changes gdi32.dll and win32k.sys - if you deinstall this patch, you get your old gdi32.dll and win32k.sys back.

I bet the next Patchday will bring you another (newer) gdi32.dll and win32k.sys (as did KB 2970228 - a patch which enables keyboard input of the russian rubel symbol and replaces win32k.sys).

So the problem will be back next month (latest).

That means, Microsoft expects developers not not modify any font files any more - which at least Delphi 2007 obviously does not care about. We need some kind of fix from Embarcadero - otherwise we havt to resort to hacks like the renaming tool from dummzeuch (http://stackoverflow.com/questions/25295980/delphi-2007-error-cannot-create-file-c-users-admin-appdata-local-temp-editorl).


Henrich Deppenmeier at 8/15/2014 7:08:43 AM -
I'm happy to see this bug open again - but I do not agree with the severity level ("Extreme Corner Case"), because this problem hits everyone with active Windows Updates (Win7 and up) and will continue to hit us on almost any future patchday.

Perhaps the description from Stephane is a litte too brief.

Steps to reproduce on a fully patched System (including the mentioned KB2970228 / KB2982791 ) :

0. Assume a freshly booted OS
1. Start Delphi 2007
2. Wait until Delphi 2007 is up
3. Start another instance of Delphi 2007
4. You'll see the error "Cannot create ....\temp\EditorLineEnds.ttr .. File in use"
5. The second instance of Delphi 2007 does not show
6. Every further instance of Delphi 2007 won't show and will trigger the error message
7. Close your first instance
8. Use Taskmanager to get rid of all bds.exe processes
9. You won't be able to start Delphi 2007 again (same errormessage), because the operating system seems to hold a lock on the said file (via Win32k.sys, I assume).
10. In order to start Delphi 2007 again, you need to reboot your computer.

It has a huge impact - i think hundreds, if not thousands of Delphi 2007 developers are affected. (In our office, we rolled back the KB's - but that won't help us for long).

Delphi 2007 creates/modifies/touches EditorLineEnds.ttr and Microsoft does not like that any more.

Delphi XE3 has the same editor options (Show Tabs, Line Breaks etc) and seems to use the same font - but it does not touch the file and does not encounter this problem.
So someone on your end must have changed the way this feature is implemented - if that change could find its way into Delphi 2007, we'd be really happy.

I'm happy to help in case you need to ask any questions...

Tomohiro Takahashi at 8/17/2014 5:08:16 PM -
AFAIK, the problematic patches have been cancelled by Microsoft.

Tomohiro Takahashi at 8/16/2014 3:50:15 AM -
If possible, please try to use Andy-san's IDEFixPack ?
[EditorLineEnds.ttr - IDEFixPack users are not affected]
http://andy.jgknet.de/blog/2014/08/editorlineends-ttr-idefixpack-users-are-not-affected/

Rodrigo Mota at 8/19/2014 4:41:55 AM -
The quickest solution I've found out is to rename the file, then you don't have to reboot.

Ric Hupalo at 8/28/2014 3:10:06 PM -
This happened yet again on updates made available on August 28, 2014. It was associated with one (or more) of these three security updates: KB2965788, KB2993651, KB2923545. I uninstalled all three and the problem went away.

Andrew Graham at 8/29/2014 5:21:58 AM -
I first had problem with 2 updates (KB2982791 and KB2970228), but now also have with third update (KB2993651)

Currently I'm fixing by uninstalling the updates :-

Create batch file with following :-

wusa /uninstall /kb:2982791  
wusa /uninstall /kb:2970228
wusa /uninstall /kb:2993651

Run batch file, reboot as requested.

ROBERTO SARTORI at 8/29/2014 1:41:11 AM -
I had this error with D2007.
I confirm that the problem is on one of TWO security update:
KB2965788, KB2993651 (I don't have KB2923545)

I uninstalled all two and the problem is fixed.

Tomohiro Takahashi at 8/28/2014 5:45:26 PM -
I opened this report.

Jan Spreen at 10/1/2014 12:44:51 AM -
Rename the EditorLineEnds.ttr does the job

JHH Drenth at 10/18/2014 3:25:45 AM -
yesterday I've update my windows and the problem is back again. At the moment I need to rollback windows updates every patch-Tuesday. Apparently Microsoft will not change Windows for us, so hopefully Delphi will fix it.

Tomohiro Takahashi at 10/19/2014 6:05:18 PM -
Please see this article.
[Solution for the EditorLineends.ttr issue]
http://edn.embarcadero.com/article/44076?utm_source=twitterfeed&utm_medium=twitter

Server Response from: ETNACODE01