Microsoft KB Archive/924162

From BetaArchive Wiki

Article ID: 924162

Article Last Modified on 10/27/2006



APPLIES TO

  • Microsoft Visual Studio 2005 Express Edition
  • Microsoft Visual Studio 2005 Standard Edition
  • Microsoft Visual Studio 2005 Professional Edition
  • Microsoft Visual Studio 2005 Team Edition for Software Architects
  • Microsoft Visual Studio 2005 Team Edition for Software Developers
  • Microsoft Visual Studio 2005 Team Edition for Software Testers
  • Microsoft Visual Studio 2005 Team System Test Edition



Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry


SYMPTOMS

Consider the following scenario:

  • You install the hotfix that is described in the following Microsoft Knowledge Base article:

    920805 FIX: You may experience slow performance when you work with a Visual Basic solution that contains many projects in Visual Studio 2005

  • You open a Microsoft Visual Basic 2005-based Web project in Microsoft Visual Studio 2005.
  • You start a debugging session for the Visual Basic 2005-based Web project.
  • You expand an item in the Watch window.

In this scenario, the Visual Basic 2005 compiler unexpectedly exits (crashes).

RESOLUTION

Hotfix information

A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Visual Studio 2005 service pack that contains this hotfix.

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

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.

Prerequisites

You must have Visual Studio 2005 installed to apply this hotfix.

Restart requirement

You do not have to restart the computer after you apply this hotfix.

Registry information

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

This hotfix includes performance enhancements that are described in the following Microsoft Knowledge Base articles:

917452 FIX: You may experience performance issues when you use solutions that contain large Visual Basic projects in Visual Studio 2005


920805 FIX: You may experience slow performance when you work with a Visual Basic solution that contains many projects in Visual Studio 2005


To obtain improved performance from this hotfix, add and then enable the OptimizePDB registry value. To do this, follow these steps:

  1. Click Start, click Run, type regedit, and then click OK.
  2. Locate and then click the following registry key:

    HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\VB Editor

    Note If you are using Visual Basic Express, the registry key is as follows:

    HKEY_CURRENT_USER\Software\Microsoft\VBExpress\8.0\VB Editor

  3. Click Edit, click New, and then click DWORD Value.
  4. Type OptimizePDB, and then press ENTER.
  5. Right-click OptimizePDB, and then click Modify.
  6. Type 1, and then click OK.
  7. Exit Registry Editor.

    After you add the OptimizePDB registry value, open the Visual Basic solution in Visual Studio 2005. Then, click Clean Solution on the Build menu.

The OptimizePDB registry value makes the Visual Basic compiler optimize the .pdb file to improve performance. However, the new .pdb file format is not fully compatible with the old .pdb file format. Therefore, a version of Visual Studio 2005 that does not have this hotfix applied may be unable to read the new .pdb file format. To resolve this issue, use one of the following methods:

  • Apply this hotfix on all development computers.
  • Click Clean Solution or Rebuild Solution on the Build menu before you start debugging the solution.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

This hotfix includes two packages:

  • A Visual Studio 2005 package
  • A Microsoft .NET Framework 2.0 package

You must install both packages.

Visual Studio 2005 hotfix files
File name File version File size Date Time
Cpde.dll 8.0.50727.196 487,936 16-Aug-2006 10:23
Msenv.dll 8.0.50727.196 9,107,456 16-Aug-2006 10:38
Msvb7.dll 8.0.50727.196 3,144,192 16-Aug-2006 10:40
Msvbprj.dll 8.0.50727.196 2,779,648 16-Aug-2006 10:40
The .NET Framework 2.0 hotfix file
File name File version File size Date Time
Vbc.exe 8.0.50727.201 1,157,120 24-Aug-2006 10:04


WORKAROUND

To work around this problem, follow these steps:

  1. Start Visual Studio 2005.
  2. On the Tools menu, click Options.
  3. Expand Debugging, and then click General.
  4. Click to select the Enable Just My Code (Managed only) check box.
  5. Click to select the Show all members for non-user objects in variables windows (Visual Basic only) check box.
  6. Click OK.


STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates


This hotfix also includes the fixes that are described in the following Microsoft Knowledge Base articles:

915038 FIX: You may receive Visual Basic compiler error messages when you are developing a Visual Basic 2005 project in Visual Studio 2005


920145 FIX: You may receive an error message when you consume an assembly that has an obfuscated generic type in Visual Studio 2005


919904 FIX: You may receive an error message when you try to build a Web project that references a .NET Compact Framework 2.0 assembly in Visual Basic 2005


Keywords: kbfix kbbug kbhotfixserver kbqfe kbpubtypekc KB924162