PRB: Getting Out Of Memory Error with COMCallingJava
Article ID: 163720
Article Last Modified on 5/12/2007
APPLIES TO
- Microsoft Visual J++ 1.0 Standard Edition
- Microsoft Visual J++ 1.1 Standard Edition
This article was previously published under Q163720
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:
Keywords: kberrmsg kbprb KB163720