Getting SYSTEM ERROR: Memory violation. (49) on executing PR

Posted by pardeepsahu on 06-Jul-2017 04:59

Issue

Getting SYSTEM ERROR: Memory violation. (49) on executing PROCESS EVENTS statement after upgrade the progress version from 10.1C to 11.6 . Also if we are running the application via procedure editor there is no error in 11.6. Error coming only when saving a record in CHUI window and running the application through UNIX script (directly including start.p using -p parameter). But if we run the start.p directly from procedure editor no error coming. 

Is anyone faced same issue on progress upgrade to 11.6 activity ? 

Code creating problem is PROCESS EVENT statement -

PROCEDURE disconnectAppservers:


define variable lhAppserver as handle no-undo.
def var lhAS as handle no-undo.

PROCESS EVENTS.

ASSIGN lhAppserver = SESSION:FIRST-SERVER.

DO WHILE VALID-HANDLE(lhAppserver):
lhAS = lhAppServer:next-sibling.

/* Disconnect only if NO outstanding Asynchronous requests for AppServer */
if lhAppserver:ASYNC-REQUEST-COUNT eq 0 then
do:
if lhAppserver:connected() = true then
lhAppserver:disconnect().

/* This removes the handle from ttVar */
if valid-handle(lhFramework) then
RUN emptyVariable in lhFramework (INPUT "APPSERVER-" + TRIM(lhAppserver:PRIVATE-DATA)).

delete object lhAppserver.

end.

lhAppServer = lhAS.
END.

END PROCEDURE.

Log Trace -

(Procedure: 'disconnectAppservers xpro/xmenu2.p' Line:2921) SYSTEM ERROR: Memory violation. (49)
[17/07/03@19:32:06.660+1000] P-001432 T-000001 1 4GL -- (Procedure: 'disconnectAppservers xpro/xmenu2.p' Line:2921) ** Save file named core for analysis by Progress Software Corporation. (439)
[17/07/03@19:32:10.480+1000] P-001432 T-000001 1 4GL -- (Procedure: 'disconnectAppservers xpro/xmenu2.p' Line:2921) Failed to open file protrace.1432 errno 13 (1263)

All Replies

This thread is closed