PRB: Out of Memory Error Message Using the Rich Textbox Control

ID: Q236286


The information in this article applies to:
  • Microsoft Visual Basic Professional and Enterprise Editions for Windows, versions 4.0, 5.0, 6.0


SYMPTOMS

When running an application that uses the Microsoft Rich Textbox control, an Out of Memory error occurs. Another possible error is:

System Error &H80004005 (-2147467259). Unexpected Error


CAUSE

A version of the Riched32.dll file that is not redistributable is installed on the computer. Riched32.dll may not be distributed because it requires files that are only installed by Microsoft Exchange. Because the Riched32.dll file is a shared component, this problem may occur when you use an application that is installed correctly.


RESOLUTION

Microsoft has created an application that installs the correct version of the Riched32.dll file on the target system.

The following files are available for download from the Microsoft Download Center. Click the file names below to download the files:

Richedfx.exe
Release Date: Aug-25-1999

For more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address
http://www.microsoft.com/downloads/search.asp
and then click How to use the Microsoft Download Center. Download the richedfx.exe file and run the executable on the target system. The program verifies that the problem exists on the target system and allows you to confirm whether you want to replace the Riched32.dll file with the correct version.

NOTE: This application requires that the Visual Basic 6.0 run-time file msvbvm60.dll is installed on the target computer. Any Visual Basic application installs this file. The msvbvm60.dll file can also be downloaded from the following Microsoft Knowledge Base article:
Q235420 FILE: VBRun60sp3.exe Installs Visual Basic 6.0 Run-Time Files


STATUS

This problem occurs when an application distributes the wrong version of the Riched32.dll file. Applications whose distributions are created using Microsoft tools such as the Setup Wizard or the Package and Deployment Wizard (PDW) do not cause this problem. Vendors of Visual Basic applications that choose to use third-party distribution tools should distribute a copy of the Riched32.dll file from the \VB98\Wizards\PDWizard\Redist directory.

NOTE: Set up programs should not replace the version of Riched32.dll on systems running Microsoft Windows NT 4.0 or Windows 2000. See the Microsoft Knowledge Base article in the REFERENCES section of this article for more information.


REFERENCES

For specific details regarding this issue, see the following article in the Microsoft Knowledge Base:

Q197580 INFO: Distribution Issues with Riched32.dll

Additional query words:

Keywords : kberrmsg kbfile kbDeployment kbVBp kbVBp400 kbVBp500 kbVBp600 kbGrpVB kbDSupport
Version : WINDOWS:4.0,5.0,6.0
Platform : WINDOWS
Issue type : kbprb


Last Reviewed: December 14, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.