C/C++ Programmer's Guide (G06.27+, H06.03+)

Table Of Contents
Run-Time Messages
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
22-10
Heap-Management Messages
32
Cause. The CRE or a run-time library found invalid data in the user heap or in the
heap control block.
Your program might be writing information over the heap or heap control block. An
invalid pointer or indexing operation could cause this error.
“Process heap size is 0” appears when your program or a run-time library requested
space, but the process has no user heap.
Effect. Program behavior is language and application dependent.
Recovery. In the TNS environment, the program might have written data in the upper
32K words of the user data segment or in the extended segment. The upper 32K
words of the user data area are reserved for CRE and run-time library data. In a small-
memory model, the heap is allocated in the lower 32K words of the user data segment.
In a large memory model, the heap is allocated in an extended memory segment.
Check the program’s logic. Use a symbolic debugger to help isolate the problem or
consult your system administrator.
If this error occurs in the native environment, use a symbolic debugger to help isolate
the problem.
In the case of “Process heap size is 0,” specify the existence of a user heap when
building your program.
33
Cause. The address of a block of memory to return to the heap was zero.
Effect. Program behavior is language and application dependent.
Recovery. Correct the program to pass the correct address.
34
Cause. The address of a block of memory to return to the heap did not point to a block
allocated from the heap.
Effect. Program behavior is language and application dependent.
Recovery. Correct the program to return the correct pointer value.
Invalid heap or heap control block
Process heap size is 0
Released space address is 0
Released space not allocated