[Migrated content. Thread originally posted on 07 May 2008]
Hello to everyone,I have a problem with the allocation of memory after a call of a java class from cobol; the problem is that the memory used by wrun32 (I use acucobolGt 7.0.1 for windows) increase itself after a call like this:
CALL "C$JAVA" USING
CJAVA-NEW, "it/name1/name2/name3/Model",
methodSignature,
modelName, inputName, inputFileDName,
inputPdf, outputName
GIVING OBJECT-HANDLE.
and don't decrease completely itself after destroy java object:
CALL "C$JAVA" USING CJAVA-DESTROY, OBJECT-HANDLE
GIVING STATUS-VAL.
so every call to the constructor (cjava-new opcode) the memory take a consistent portion of total system memory.
In other case using javaArray and a call-static, the system fault with a "Access memory violation" error.
Where I wrong?
(you excuse me for my poor English)
Umberto



