Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: XE5 IDE fails start on W10 "The type initializer for..threw an exception"


This question is answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 5 - Last Post: Oct 22, 2015 9:51 AM Last Post By: Wilfried Visser
Wilfried Visser

Posts: 7
Registered: 6/21/01
XE5 IDE fails start on W10 "The type initializer for..threw an exception"  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 19, 2015 1:52 AM
Hi all,
After a few days of working with Delphi XE5 on Windows 10 the IDE suddenly fails to start, giving the message: "The type initializer for System.Collections.Comparer threw an exception" and then next 'AV at address 205735D6 in module coreide190.bpl'... etc. I found a Russian forum with exactly the same message but cannot read Russian.
Moreover, also XE2 just installed on the same Windows 10 machine, would not start anymore: Msg is 'item missing'.
I also observed that the keyboard configuration of W10 kept reverting back from US /Int. back to NL (dutch) all the time. I read some articles relating it to that....
Any ideas? Please help...
regards, Wilfried
Alex Belo

Posts: 626
Registered: 10/8/06
Re: XE5 IDE fails start on W10 "The type initializer for..threw an exception"  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 21, 2015 8:34 AM   in response to: Wilfried Visser in response to: Wilfried Visser
Wilfried Visser wrote:

After a few days of working with Delphi XE5 on Windows 10 the IDE
suddenly fails to start, giving the message: "The type initializer
for System.Collections.Comparer threw an exception" and then next 'AV
at address 205735D6 in module coreide190.bpl'... etc. I found a
Russian forum with exactly the same message but cannot read Russian.
Moreover, also XE2 just installed on the same Windows 10 machine,
would not start anymore: Msg is 'item missing'. I also observed that
the keyboard configuration of W10 kept reverting back from US /Int.
back to NL (dutch) all the time. I read some articles relating it to
that.... Any ideas? Please help...

Google returns

http://www.sql.ru/forum/1125303-1/xe7-i-window-10

as very first reference.

The only potentially useful information is in last post on the second
page of the topic; translation:



I was faced with the same problem - ХЕ4 and XE8 stopped working
synchronously.

The reason was changed regional settings (they were changed for
installation of another appication). After reverting of regional
settings Studio works again.



Hope this helps.

--
Alex
Alex Belo

Posts: 626
Registered: 10/8/06
Re: XE5 IDE fails start on W10 "The type initializer for..threw an exception"
Helpful
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 21, 2015 8:41 AM   in response to: Alex Belo in response to: Alex Belo
Wilfried Visser

Posts: 7
Registered: 6/21/01
Re: XE5 IDE fails start on W10 "The type initializer for..threw an exception"  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 22, 2015 5:55 AM   in response to: Alex Belo in response to: Alex Belo
.....

Google returns

http://www.sql.ru/forum/1125303-1/xe7-i-window-10

as very first reference.

The only potentially useful information is in last post on the second
page of the topic; translation:


I was faced with the same problem - ХЕ4 and XE8 stopped working
synchronously.

The reason was changed regional settings (they were changed for
installation of another appication). After reverting of regional
settings Studio works again.


Hope this helps.
--
Alex

Thanks very much Alex. It confirms what I found elsewhere that it was related to locale.
Few questions:
How did you revert regional settings? Just the windows regional settings setting back to the locale that it had upon install? I think I tried that but it did not help.
Did you have it on Windows 10?
Exactly the same error messages?

I was also suspecting the IDE add-ons DDevExtenstions, IDEfixpack, Compilerspeedup etc. by Andreas Hausladen ("Andy's blog") and also MadExcept as it happened after I uninstalled those after I observer the IDE / Debugger to become slower/waiting between completion of link process and actual starting of the EXE.
I also suspected old Windows 7 Dell tools related to security that were on the laptop before upgrade to Windows 10. But I know am more confident that these were not the problem.

Interestingly also: I 'reset' Windows 10 (keeping own files), having to reinstall Delphi XE2 and XE5: to my surprise then the problem was still there. So obviously, the Windows 10 reset does not reset the locale settings right?
Is there a special REVERT option for the regional settings?

regards and thanks again, Wilfried

Edited by: Wilfried Visser on Oct 22, 2015 5:55 AM
Alex Belo

Posts: 626
Registered: 10/8/06
Re: XE5 IDE fails start on W10 "The type initializer for..threw an exception" [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 22, 2015 9:38 AM   in response to: Wilfried Visser in response to: Wilfried Visser
Wilfried Visser wrote:

Few questions:

Sorry, I have not last Studio versions and still use Win7; I just
glanced and translated for you information from mentioned website...

Is there a special REVERT option for the regional settings?

I think they changed/reverted some settings (like decimal separator for
example) manually...

Also new RyuJIT (.NET Framework 4.6 Preview; can be installed with MSVC
2015 for example) was mentioned as possible culprit but all attempts to
solve the problem by returning to the old jit failed.

Methods to disable RyuJIT
https://github.com/Microsoft/dotnet/blob/master/docs/testing-with-ryujit.md#disable-ryujit

Accroding to method #1 you can add

<configuration>
<runtime>
<useLegacyJit enabled="1" />

into bds.exe.config

You can find some details on this here:

RyuJIT Bug Advisory in the .NET Framework 4.6
http://blogs.msdn.com/b/dotnet/archive/2015/07/28/ryujit-bug-advisory-in-the-net-framework-4-6.aspx

Good luck.

--
Alex
Wilfried Visser

Posts: 7
Registered: 6/21/01
Re: XE5 IDE fails start on W10 "The type initializer for..threw an exception" [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 22, 2015 9:51 AM   in response to: Alex Belo in response to: Alex Belo
Alex Belo wrote:
Wilfried Visser wrote:

Few questions:

Sorry, I have not last Studio versions and still use Win7; I just
glanced and translated for you information from mentioned website...

Is there a special REVERT option for the regional settings?

I think they changed/reverted some settings (like decimal separator for
example) manually...

Also new RyuJIT (.NET Framework 4.6 Preview; can be installed with MSVC
2015 for example) was mentioned as possible culprit but all attempts to
solve the problem by returning to the old jit failed.

Methods to disable RyuJIT
https://github.com/Microsoft/dotnet/blob/master/docs/testing-with-ryujit.md#disable-ryujit

Accroding to method #1 you can add

<configuration>
<runtime>
<useLegacyJit enabled="1" />

into bds.exe.config

You can find some details on this here:

RyuJIT Bug Advisory in the .NET Framework 4.6
http://blogs.msdn.com/b/dotnet/archive/2015/07/28/ryujit-bug-advisory-in-the-net-framework-4-6.aspx

Good luck.

--
Alex

Thank for your help, really useful. I re-installed W10 clean and so far no problem. I will be careful with locale changes and keep your tips in case it will happen again.
regards and tanks again, Wilfried
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02