Skip to main content
Dominique Sacre
Rocketeer
Aug 31, 2011 2:21 PM UTC

Invalid Address specified to RtlFreeHeap

[Migrated content. Thread originally posted on 30 August 2011]

Hi,

I am trying to test a cobol program in netexpress 5.1 IDE ; when I encounter a cobol READ statement while animating I get the following error.

HEAP[runw.exe]:
Heap block at 00146D38 modified at 00147140 past requested size of 400
HEAP[runw.exe]:
Invalid Address specified to RtlFreeHeap( 00140000, 00146D40 )

The file has the below description

SELECT OPTIONAL DALLOG ASSIGN TO "DALLOG"
ORGANIZATION INDEXED
ACCESS DYNAMIC
FILE STATUS IS DALLOG-STATUS
DALLOG-DVS-STATUS
RECORD KEY IS DALLOG-KEY.


FD DALLOG
IS EXTERNAL
RECORD VARYING FROM 5 TO 32763 CHARACTERS
DEPENDING ON DALLOG-RECORD-LENGTH
RECORDING MODE V.
01 DALLOG-RECORD.
05 DALLOG-KEY PIC X(005).
05 FILLER PIC X.
05 DALLOG-CONTENTS PIC X(32757).

What could be wrong ?

Thanks
PTeng

    1 reply

    Gael Wilson
    Rocketeer
    Aug 31, 2011 2:31 PM UTC

    [Migrated content. Thread originally posted on 30 August 2011]

    Hi,

    I am trying to test a cobol program in netexpress 5.1 IDE ; when I encounter a cobol READ statement while animating I get the following error.

    HEAP[runw.exe]:
    Heap block at 00146D38 modified at 00147140 past requested size of 400
    HEAP[runw.exe]:
    Invalid Address specified to RtlFreeHeap( 00140000, 00146D40 )

    The file has the below description

    SELECT OPTIONAL DALLOG ASSIGN TO "DALLOG"
    ORGANIZATION INDEXED
    ACCESS DYNAMIC
    FILE STATUS IS DALLOG-STATUS
    DALLOG-DVS-STATUS
    RECORD KEY IS DALLOG-KEY.


    FD DALLOG
    IS EXTERNAL
    RECORD VARYING FROM 5 TO 32763 CHARACTERS
    DEPENDING ON DALLOG-RECORD-LENGTH
    RECORDING MODE V.
    01 DALLOG-RECORD.
    05 DALLOG-KEY PIC X(005).
    05 FILLER PIC X.
    05 DALLOG-CONTENTS PIC X(32757).

    What could be wrong ?

    Thanks
    PTeng
    PTeng,

    The error is a buffer overrun ie something has written past the end of an allocated block of memory. I would suggest that you raise a support incident with your test program as a sample.

    Gael.