Try OpenEdge Now
skip to main content
Programming Interfaces
External Program Interfaces : Host Language Call Interface : Memory allocation

Memory allocation

Use malloc() and free() to allocate and deallocate memory within a C function. Before returning to ABL, deallocate all memory that you allocate in the function.
Caution: If you allocate too much memory in an HLC function and leave it allocated after returning to ABL, your OpenEdge application might not have enough memory for its own needs. If OpenEdge runs out of memory at any point in the ABL application, it aborts and returns to the operating system with an error.