PATCH: Visual C++ 4.0 Crash Fixes

ID: Q140041


The information in this article applies to:
  • The Development Environment, included with:
    • Microsoft Visual C++ 32-bit Edition, version 4.0


SUMMARY

This article explains how to get a patch to fix the problems discussed below in the SYMPTOMS section.

The following file is available for download from the Microsoft Software Library:

~ Vcpatch.exe
For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:
Q119591 How to Obtain Microsoft Support Files from Online Services


SYMPTOMS

This patch fixes three different types of Visual C++ 4.0 Developer Studio crashing problems. The scenarios are described below:

  1. When the current project has sub-projects and the create browser file option is turned on, the Developer Studio may randomly generate an access violation. This can happen in response to one of the following actions:

    1. Building the project.


    2. Closing the project, including closing MSDEV.


    3. Opening a different project or creating a new project.


    4. Saving all the files using the Save All command.




  2. When stopping a debugging session then restarting a new debugging session with a project loaded, the Developer Studio fails with an access violation. The error message could be something like :
    
       msdev.exe -  Application Error.
       The instruction at "0x77f85064" referenced memory at "0x00000010".
            The memory could not be "read". 
    Restarting a new debugging session, the Developer Studio will crash with the following error message :
    Microsoft Developer Studio
    (NTDLL.DLL): OxC0000005: Access Violation.


  3. When deleting sub-projects from a main project, the Developer Studio may sometimes crash with an access violation.



RESOLUTION

  1. Download the self-extracting patch file to a temporary directory.


  2. Run VCPATCH.EXE. This will create three files : patch.exe, patch.rtp, and readme.txt.


  3. Copy patch.exe and patch.rtp to the \msdev\bin directory.


  4. Run patch.exe. The patch will modify the MSVCBLD.PKG file in the \msdev\bin\ide directory. It will also modify the MSVCCLS.PKG file in the \msdev\bin\ide directory and the MSVCSRC.DLL in the \msdev\bin directory.


  5. Delete patch.exe and patch.rtp from \msdev\bin directory.


Note: You need to close the Developer Studio when applying the patch. Otherwise the files will not be modified.

This patch should be applied to the English version of Visual C++ 4.0 only.

These problems were fixed in Visual C++ 4.1.

Keywords : kbide kbVC kbGrpDSTools
Version : WINNT:4.0;
Platform : NT WINDOWS
Issue type :


Last Reviewed: January 31, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.