PRB: Getting Out Of Memory Error with COMCallingJava

Last reviewed: January 29, 1998
Article ID: Q163720
The information in this article applies to:
  • Microsoft Visual J++, version 1.0, 1.1

SYMPTOMS

Attempting to drive the COMCallingJava sample through VBDriver.exe or a C++ client sometimes generates an E_OUTOFMEMORY message.

CAUSE

The E_OUTOFMEMORY error is generated if the .class file, CEuclid.class, for the class is not in one of the directories in the CLASSPATH.

RESOLUTION

To fix the problem, copy CEuclid.class to one of the directories specified in the CLASSPATH. The %windir%\java\classes directory is one of the directories that is normally specified in the CLASSPATH. Copy CEuclid.class to this directory.

NOTE: There are two CEuclid.class files generated. One in the project directory and the other in the %windir%\java\TrustLib\euclid directory generated by Javatlb. Copy the file from the project directory.

STATUS

This behavior is by design.

REFERENCES

For the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java, see the following page on the Microsoft Technical Support site:

   http://support.microsoft.com/support/visualj/
   http://support.microsoft.com/support/java/

Keywords          : kberrmsg JCOM
Technology        : kbInetDev kbole
Version           : 1.0 1.1
Platform          : WINDOWS
Issue type        : kbprb


================================================================================


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