Article ID: 103438 - Last Review: January 9, 2003 - Revision: 1.1

FIX: Out of Memory w/ MSOLE2.VBX When SHARE.EXE Not Loaded

This article was previously published under Q103438

On This Page

Expand all | Collapse all

SYMPTOMS

You receive an "Out of Memory" error after adding the MSOLE2.VBX control to a form. That is, after adding the MSOLE2.VBX control to a form, you proceed to select an item from the list. Once you press the OK button, you get the "Out of Memory" error. This is an incorrect error message.

CAUSE

This error can be caused by not having SHARE.EXE loaded in memory. The MSOLE2.VBX control requires that SHARE.EXE be loaded in memory before you use the MSOLE2.VBX control. The problem is that the error message is incorrect. You are not out of memory. Instead of "Out of Memory," the error message should say "SHARE.EXE required to perform this operation."

WORKAROUND

Close Windows. Go to the \DOS directory and run SHARE.EXE to load it into memory. Then restart Windows and Visual Basic. Now you can add a MSOLE2.VBX control to your form, select an option from the list, and choose OK to see the desired embedded object appear on your form.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem has been corrected in Visual Basic version 4.0.

MORE INFORMATION

Steps to Reproduce Problem

  1. Start Visual Basic or from the File menu, choose New Project (ALT, F, N) if Visual Basic is already running. Form1 is created by default.
  2. Add a MSOLE2.VBX control to Form1.
  3. Once the control displays the Insert Object window, select an object from the list provided, and choose the OK button. This should result in the "Out of Memory" error.

APPLIES TO
  • Microsoft Visual Basic 3.0 Professional Edition
Keywords: 
kbbug kbfix KB103438
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
 

Article Translations