Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
Hi,
 
We have a vb.net app which works fine on Windows 2003/2008/Window 7, yet on Windows 2012 Server and Windows 8 it takes over 30s to show the initial form.
 
Have spent some time modifying the app to see what was wrong and it appears that it simply takes 30s to fire the form load event.
 
The main form does have a large number of frames (30) each containing between 2 and 0 checkboes, text boxes and lables (giving about 180 objects in total). If we remove all those frames, then the form load appears almost instantly.
 
The strange thing is this application is working well on all previous operating systems.
 
Does anyone know why Windows 8 / 2012 should be so slow in comparision to earlier OS's in this respect?
 
Thanks,
Martin.
Posted 14-Dec-12 5:02am
Comments
Sergey Alexandrovich Kryukov at 14-Dec-12 16:09pm
   
Is it faster on 7? Well, I knew Window 8 would suck... :-)
—SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 7

Ignore solution 6
 
My problem was that the 3rd party controls were 32 bit and this seem to confuse VS2012 on Windows 8 64 bit.
Solution: Under project properties, Compile - select Target CPU to x86.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 5

I have a similar problem! I noticed that if I put any images or icons in the form, it gets slow to start up on Win8 x64. I run just fine the same C# win-form application on Windows 7 x32. Some kind of bug?
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Start it in a debugger, or write some code to work out how long each step takes. Record when your form constructor is called, it could all be the time it takes to compile your app to run it.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

http://blogs.msdn.com/b/calvin_hsia/archive/2009/12/16/9938003.aspx[^]
 
Check it,Perhaps it will be useful for u.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 6

I have had the same problem with VS2012 & Windows 8 x64. The release build of the exe took 20 secs to load whilst the debug build exe takes 9 secs!!! Both too slow.
I've wasted 3 days trying to solve this. First I thought it was down to some third party .net 3.5 controls but after removing all trace of them, the start up times remained the same.
I have found a work around
From menu: VIEW Properties..
Compile Tab: Open Advanced Compile Options...
Untick Enable optimizations
 
Maybe not a great workaround but it did the trick.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 6,609
1 Sergey Alexandrovich Kryukov 6,240
2 CPallini 5,180
3 George Jonsson 3,574
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web03 | 2.8.140916.1 | Last Updated 27 Jul 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100