Enterprise Developer provide sample programs, eci2oper.cbl and eci-call.cbl, for testing CTG.
These sample programs work fine as it is in the documentation. I used ED for Eclipse v2.2 U2.
For testing purpose,
I rebuilt COBOL JVM Project with ecicall.cbl. It is same program with eci-call.cbl, just file anme renamed.
When I ran ecicall.cbl as COBOL JVM Application, I got following errors on Console view:
===== Copy of CONSOLE View ==========
Enter the message you want to send to the console (enter only to terminate program)
==> 1234567890
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x72c9e9b5, pid=4280, tid=4520
#
# JRE version: Java(TM) SE Runtime Environment (8.0_45-b15) (build 1.8.0_45-b15)
# Java VM: Java HotSpot(TM) Client VM (25.45-b02 mixed mode windows-x86 )
# Problematic frame:
# C [CCLAPI32.dll+0xe9b5]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\CTG\CTGCLIjvm\hs_err_pid4280.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
The function under MTO has returned the following return codes.
EIBRESP : +38976288
EIBRESP2 : +38976288
Enter the message you want to send to the console (enter only to terminate program)
==>
-----------------------------------------------------------------------------------------------------------------
I have two questions:
1. Can I make ecicall.cbl as JVM COBOL Program by help of any wrapper program ?
2. Can I have Java program running equivalently with eci-call.cbl ?
Many Thanks