PATCH: REGSVR.EXE GPFs in Windows 95

Last reviewed: October 7, 1997
Article ID: Q148319
The information in this article applies to:
  • Microsoft Visual C++, 16-bit Edition, versions 1.5, 1.51, 1.52
  • Microsoft OLE Control Developer's Kit (CDK) version 1.3

SUMMARY

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

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

 ~ Oc25.exe (size: 75953 bytes) 

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q119591
   TITLE     : How to Obtain Microsoft Support Files from Online Services

SYMPTOMS

When you build a 16-bit OLE Control and attempt to register it using the Register Control command under the Tools menu, Windows 95 terminates, displaying a blue screen when the REGSVR.EXE utility runs, and reporting that the REGSVR.EXE application has performed an illegal operation.

CAUSE

This is caused by Windows 95's implementation of 16-bit OLE DLLs, where the OLE DLLs are unloading in an unexpected order. This results in the DLLs' WEP calling into a code segment at an address which has been discarded and Windows 95 is not able to call a not-present segment in a WEP.

RESOLUTION

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

  2. Run OC25.EXE. This will create the following files:

          Readme.txt
          Oc25kb.txt
          Patch.exe
          Oc25.rtp
    

  3. Copy Patch.exe and Oc25.rtp to \Windows\System directory on Windows 95, Windows 3.x, or Windows NT.

  4. Run the following command at the command prompt in that directory:

          patch OC25
    

This will patch both Oc25.dll and Oc25d.dll.

REFERENCES

Please refer to the README.TXT created by patch for more information, if the files have not been patched properly.


Additional query words: softlib
Keywords : CDKIss kb16bitonly
Technology : kbole
Version : WIN3X:1.3,1.5,1.51,1.52;
Platform : NT WINDOWS
Issue type : kbfile
Solution Type : kbpatch


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: October 7, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.