PRB: Getting Out Of Memory Error with COMCallingJava (163720)



The information in this article applies to:

  • Microsoft Visual J++ 1.0
  • Microsoft Visual J++ 1.1

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:

Modification Type:MinorLast Reviewed:8/25/2005
Keywords:kberrmsg kbprb KB163720