PRB: "Error 7 - Out of Memory" Error Message From Visual Basic Application Using FM20.DLL (241245)



The information in this article applies to:

  • Microsoft Visual Basic Learning Edition for Windows 5.0
  • Microsoft Visual Basic Learning Edition for Windows 6.0
  • Microsoft Visual Basic Professional Edition for Windows 5.0
  • Microsoft Visual Basic Professional Edition for Windows 6.0
  • Microsoft Visual Basic Enterprise Edition for Windows 5.0
  • Microsoft Visual Basic Enterprise Edition for Windows 6.0

This article was previously published under Q241245

SYMPTOMS

A Visual Basic application is deployed on a target machine. When attempting to run the application on a target machine that does not have Microsoft Office 97 or later installed, the following error is generated:
Error 7 - Out of Memory
No loss of memory is monitored, and the system appears stable. The application executes properly if Microsoft Office 97 is installed on the target machine.

CAUSE

The problem is that FM20.DLL file is used by the project. FM20.DLL file is not a redistributable component and is intended for VBA use only. FM20.DLL is known to have many problems when used with Visual Basic and other developer products. Its use is neither recommended nor supported in any Visual Studio product.

RESOLUTION

The best resolution is to remove FM20.DLL from the project.

An alternative is to deploy the application only to machines with Microsoft Office 97 or later installed. To do this, remove the reference to FM20.DLL from the PDW or Setup Wizard file list. This prevents the install wizard from installing it. Note in your product documentation that installing the appropriate version of Microsoft Office on the target machine is a pre-requisite to installing your application.

STATUS

This behavior is by design.

REFERENCES

For additional information about using FM20.DLL, please click the article number below to view the article in the Microsoft Knowledge Base:

224305 INFO: Usage and Redistribution of FM20.DLL

To see what components are redistributable, read the "Redist.TXT" file that ships with Visual Basic. This file is installed to your hard drive or it can be found in the "\Common\Redist\" folder on the Visual Basic 6.0 CD-ROM or in the "\vb\" folder of the Visual Basic 5.0 CD-ROM.

Modification Type:MajorLast Reviewed:5/13/2003
Keywords:kbAppSetup kbDeployment kbprb kbwizard KB241245