Help: Slow Launch application at first run after each reboot


  • Hi,


    I've developed an application (only one screen, not too big,published size is about 4MB)


    It runs expected. The problem I'm facing is that for a given PC, it takes quite long (1-2minutes) to launch this program. The screen waits at the Launching Application message "Verifying application requirements. This may take a few moments". This occurs only at the FIRST launch after EACH REBOOT. Subsequent launching of the program only takes a fraction of seconds.


    I don't understand why it happens. Hope someone can give me insights. Thanks!


    best regards,







    Thursday, August 17, 2006 1:24 AM

All replies

  • That's because the .NET framework is firing up for the first time, and your classes also all get compiled the first time they are used.


    Thursday, August 17, 2006 2:08 AM
  • Hi,


    Thanks for your reply. Understand that it needs compilation first time. However, what I mean is not only 1st time; I mean every time first round of launching the application after EACH reboot. i.e. if I reboot the PC, the first run will take long; 2nd and subsequent runs is normal until I reboot the PC again. This is the scenairo. Thanks!


    best regards,

    jack Ling

    Thursday, August 17, 2006 2:59 AM
  • Yes, for the reasons I stated.  When you press f5, you do NOT get an app that windows can run.  You get an app that the .NET framework can compile into a windows app.  So, every time you reboot, the .NET framework needs to initialise itself.  THEN, your MSIL needs to be compiled into machine readable code, each part is compiled the first time that part is run.


    Thursday, August 17, 2006 3:01 AM
  • Hi,

    Thanks for your reply again. I get what you mean.

    I have published my application to a shared folder then run setup.exe from another PC and installed there. The problem is on the installed PC. Sorry for my failure of knowledge, now I understand that you meant that the above process doesn't give machine readable code (and thus need compilation every run). Since the issue occurs (particularly noticeable) only on one of the PCs I've installed, I would like to ask if any items I can look into to see why the compilation taking longer than others?

    Sorry for my long-winded questions. Thanks agagin





    Thursday, August 17, 2006 3:24 AM
  • Sorry, there may be settings you can check, but I don't know what they are.


    Thursday, August 17, 2006 3:26 AM