HANDLE OF LAYOUT-MANAGER increases the Windows memory

0 Likes

Problem:

The ACUCOBOL-GT runtime may show a constant increase of occupied memory, regardless of the version in use.

This may be seen easily in the ACU debugger and using the "u" command.

Resolution:

If only the "Windows" Memory item increases, a possible cause for this unusual memory allocation is the definition of a Layout Manager handle in the Working-Storage Section of the program.

When a called program contains a line like this:

77 NW-HND-LM HANDLE OF LAYOUT-MANAGER LM-RESIZE.

an amount of 36 bytes circa of memory is allocated every time the program is called.

This can cause a great increase of used memory when the program is called recursively in a loop, even if the Layout Manager is not used by the program itself.

To stop this process, either remove the definition of the unused handle or destroy the handle itself before leaving the program:

DESTROY NW-HND-LM

If the allocated memory will continue to grow without reason, contact the Customer Care for a further analysis of the issue.

Comment List
Anonymous
Related Discussions
Recommended