Microsoft KB Archive/307191

= BUG: Visual Basic 5.0 Setup.exe Consumes CPU Time and Makes Installation Inefficient =

PSS ID Number: 307191

Article Last Modified on 12/5/2002

-

The information in this article applies to:


 * Microsoft Visual Basic Enterprise Edition for Windows 5.0
 * Microsoft Visual Basic Professional Edition for Windows 5.0

-



This article was previously published under Q307191



SYMPTOMS
You can use the Visual Basic 5.0 Setup Wizard to create the setup program for your application. During the installation process, you may notice that Setup.exe consumes a lot of CPU time even though Setup1.exe is the process that performs the main installation tasks.



CAUSE
When you run a setup program build with the Visual Basic Setup Wizard, the setup program runs in two stages:
 * 1) The Setup.exe (or &quot;bootstrap) program runs to ensure that all system dependencies are in place. If so, Setup.exe starts Setup1.exe.
 * 2) While Setup1.exe runs the portion of the setup that is based on the graphical user interface (GUI), Setup.exe waits in the background for Setup1.exe to finish. Setup.exe waits in the background so that it can clean up after Setup1.exe.

Setup.exe waits by means of a polling loop. This polling loop calls the PeekMessage function with the PM_NOREMOVE value several times, calls the Yield function, and then checks the exit code of the Setup1.exe process to see if Setup1.exe has exited. If you watch this process in PerfMon on the system, Setup.exe consumes all of the free CPU cycles as part of the polling loop.



RESOLUTION
A supported fix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Apply it only to systems that are experiencing this specific problem.

NOTE: You must have a Visual Studio license agreement to obtain this fix.

To resolve this problem, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS

NOTE: In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The English version of this fix should have the following file attributes or later:   Date        Time     Version      Size     File name 31-Aug-2001 11:02am 5.0.92.31    87.5 KB  Setup.exe



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

Additional query words: wastes CPU time

Keywords: kbbug kbQFE KB307191

Technology: kbAudDeveloper kbVB500 kbVB500Search kbVBSearch kbZNotKeyword2 kbZNotKeyword6

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© 2003 Microsoft Corporation. All rights reserved.