HANDLE OF LAYOUT-MANAGER increases the Windows memory

HANDLE OF LAYOUT-MANAGER increases the Windows memory

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.

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2017-03-02 11:03
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.