Hi All
I have been investigating a strange problem for a couple of days, and it has come to this:
I have a simple WinForms applications with a lot of controls, and a lot of them nested in multi layer panels, TabControls etc. Constructed in VS 2012...
There is no functionality on the form, the only thing that is happening is Loading the Controls in InitializeComponent.
I build this application targeting FW4.0 and AnyCPU.
Then I run it on a separate PC running Win7 Pro 64Bit, with only framework 4.0 installed.
The initial load time of the form is approximately 2 seconds.
Then I install Framework 4.5 on the machine, and reruns the application.
Now the form load takes 25 seconds initially.
Note: If I build the Application for x86 there is absolutely no problems.
I find this mighty strange, Framework4.5 should be backward compatible as far as I know. Is the install procedure for 4.5 missing some NGen routine for the dll's? Or is the Native Images somehow broken during this install?
I know that 4.5 is an in place update of 4.0 so the dll's are visually identical, and that itself is a bit confusing....
My own conclusion is to always target our WinfForms applications for x86, but still I really want to know what is going on.
Any suggestions are much appreciated .
Thanks in advance