PRB: Getting Out Of Memory Error with COMCallingJava

ID: Q163720

The information in this article applies to:

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 
Version           : 1.0 1.1
Platform          : WINDOWS
Issue type        : kbprb

Last Reviewed: July 17, 1998