[Migrated content. Thread originally posted on 28 February 2007]
Hi,We sometimes get the following error message log created.
Whenever this error happens, the log file is 2Gb in size - presumably because its continually calling itsself?
Here's the error
Reason for dump:
insism: Program already in use
COBOL error at 003ECC in inesta
("C:/logic/Stock/SOURCE/inesta.src", line 2474)
Called from 0005AC in insism
Runtime version: 7.2.0 ECN-3314 ECN-3372 ECN-3544 ECN-3574
Command line arguments: -c /logic/configs/logic.txt --app-host utodrv
Process ID: 2383
This site is running 7.2.0 on a SCO openserver 5.0.7 machine, various clients connecting, mostly Windows 2000
Basically inesta is a stock status program, with a product lookup button.
The product lookup program is the insism.
The button we figured was allowing a double click or something, so we decided to disable and reenable afterwards, but still we get the occaisional error.
The insism lookup program is a modal window, so you can't get back to the enquiry screen anyway?
Heres the code on the press of the lookup button
PRODUCT-LOOKUP-Ev-Cmd-Clicked.
MODIFY PRODUCT-LOOKUP, ENABLED FALSE
INITIALIZE LINKAGE-SEL-ISM-RECORD
SET LINKAGE-SEL-ISM-MAIN-SEQ TO TRUE
PERFORM CALL-INSISM
IF S-ISM-BAR NOT = SPACES
MOVE S-ISM-BAR TO ISM-KEY
ISD-ISM-KEY
PERFORM READ-ISM-FILE
PERFORM DISPLAY-DATA
END-IF
MOVE 4 TO ACCEPT-CONTROL
MOVE 6 TO CONTROL-ID
MODIFY PRODUCT-LOOKUP, ENABLED TRUE
.
Heres the code behind CALL-INSISM
CALL-INSISM.
*
CALL "insism" USING BY REFERENCE LINKAGE-SECTION-RECORD
LINKAGE-SEL-ISM-RECORD.
*
MOVE LINKAGE-SEL-ISM-KEY TO S-ISM-BAR
MOVE LINKAGE-SEL-ISM-DESC TO S-ISM-DESC
DISPLAY Screen1.
I've attached a screen print, so you can see the lookup button beside product code and the lookup screen itsself.
Hopefully someone has an idea of what else I could look for or check.
Thanks,
Shaun



