Slow WinForm 1st launch

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've got a simple winform app written in C# that takes almost 5 seconds to
start after a reboot. The from was previously written in VB 6 and took less
then 1 second to start. I've tried NGEN but it didn't seem to make a
difference. Has anyone been able to solve the slow first launch problem?
Thanks
 
class MyClass
{
static void Main()
{
Application.Show(new Form());
}
}

takes 1/2 second for me. I will conclude there is a problem with your code.
 
I've got a simple winform app written in C# that takes almost 5 seconds to
start after a reboot.

after I reboot, application launched just immediately after I logged in
start OK, but those launch, say, 2 seconds after I logged-in, takes forever
..... and about 1 or 2 minutes after that, they all suddenly appears.

Maybe it's juts this kind of mysterious window bug.....
 
Back
Top