Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/103438

From BetaArchive Wiki

Article ID: 103438

Article Last Modified on 1/9/2003



APPLIES TO

  • Microsoft Visual Basic 3.0 Professional Edition



This article was previously published under Q103438

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 query words: buglist3.00 3.00 fixlist4.00

Keywords: kbbug kbfix KB103438