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

Last reviewed: October 30, 1997
Article ID: Q103438
3.00 WINDOWS kbprg kbbuglist

The information in this article applies to:

- Microsoft Visual Basic programming system for Windows, version 3.0.

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.


Additional reference words: buglist3.00 3.00 fixlist4.00
KBCategory: kbprg kbbuglist
KBSubcategory: PrgCtrlsCus
Keywords : PrgCtrlsCus kbbuglist kbprg
Version : 3.00
Platform : WINDOWS
Solution Type : kbfix


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 30, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.