Microsoft KB Archive/148319

{|
 * width="100%"|

REGSVR.EXE GPFs in Windows 95

 * }

Q148319

-

The information in this article applies to:


 * Microsoft Visual C++, versions 1.5, 1.51, 1.52
 * Microsoft OLE Control Developer's Kit (CDK)

-

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

The following files are available for download from the Microsoft Download Center:

Oc25.exe

For additional information about how to download Microsoft Support files, click the article number below to view the article in the Microsoft Knowledge Base:

"Q119591 How to Obtain Microsoft Support Files from Online Services" Microsoft used the most current virus detection software available on the date of posting to scan this file for viruses. Once posted, the file is housed on secure servers that prevent any unauthorized changes to the file.

For additional information about how to download Microsoft Support files, click the article number below to view the article in the Microsoft Knowledge Base:

"Q119591 How to Obtain Microsoft Support Files from Online Services" Microsoft used the most current virus detection software available on the date of posting to scan this file for viruses. Once posted, the file is housed on secure servers that prevent any unauthorized changes to the file.

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. 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.

 Download the self-extracting patch file to a temporary directory.  Run OC25.EXE. This will create the following files: Readme.txt

Oc25kb.txt

Patch.exe

Oc25.rtp  Copy Patch.exe and Oc25.rtp to \Windows\System directory on Windows 95, Windows 3.x, or Windows NT.  Run the following command at the command prompt in that directory: "patch OC25"

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