Debugging Visual Cobol GUI class from a core dump file

Debugging Visual Cobol GUI class from a core dump file


When debugging an application using a core dump from cblcore, the Visual Cobol GUI class library is seen as part of the call stack.

How can this be debugged?



The GUI class IDY files are needed in order to debug, so the class needs to be compiled to produce them.

  • Copy the "guicl" folder located in the directory below, into another directory.

C:\Program Files (x86)\Micro Focus\Visual COBOL\cpylib\guicl\

  • Open the contained project apiguim.cblproj with VCVS and compile it.


If windows.cpy is missing, search for it in C:\Program Files (x86)\Micro Focus\Visual COBOL\cpylib and copy it into the project directory.


If the compilation gives error

"LINK : fatal error LNK1181: cannot open input file 'imm32.lib'",

make sure the IDE can find the following files:

  • comctl32.lib
  • comdlg32.lib
  • shell32.lib

For a Windows 10 machine, they are located in the following directory:

C:\Program Files (x86)\Windows Kits\10\Lib\10.0.16299.0\um\x86

The steps below describe how to link them in the project:

  • On the Solution Explorer, open the Project Properties.
  • Navigate to the COBOL Link tab and in the “Link with libs” field
  • Enter the absolute paths to those libs (For Windows 10, these would be):

"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.16299.0\um\x86\Imm32.Lib" 

"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.16299.0\um\x86\ComCtl32.Lib" 

"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.16299.0\um\x86\ComDlg32.Lib" 

"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.16299.0\um\x86\shell32.lib"

  • Save the changes and Rebuild the Solution.


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 #:
2 of 2
Last update:
‎2019-10-17 15:41
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.