Click here to Skip to main content
12,500,937 members (48,369 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VB 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 14-Dec-12 16:09pm
   
Is it faster on 7? Well, I knew Window 8 would suck... :-)
—SA
byman64 17-Jan-16 4:39am
   
I have the same issue on Windows 10 with an application VS2010. I tried to compile with vs2015 but from around 18 seconds now my application require around 50 seconds!

I tried all solutions posted here and more but I am still stucked.

Also for me it works fine on W7, Windows 2008 Server, Windows 2012 Server.

I have other applications and thet works fine, 1 second to startup.

The application with the issue uses
- the ScintillaNET DLL
- DgvFilterPopup DLL
- Crystal Report
- Excel

Someone has some other suggests?

Thanks in advance
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 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

  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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160919.1 | Last Updated 25 Feb 2016
Copyright © CodeProject, 1999-2016
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