Highlighted
Sebastian Mayer Contributor.
Contributor.
112 views

Stacksize in Native Cobol Application

Jump to solution

 Hello,

we have had the Problem already in NetExpress and now we changed die VisualCobol in VisualStudio. To run our native cobol program wie must link it with the /stack option. Is there any possibility to set this option for cbllink within Visualstudio?

Thanx in advance
Sebastian

0 Likes
1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert

Re: Stacksize in Native Cobol Application

Jump to solution

Hi Sebastian,

If you are using cbllink.exe directly you can use the -WL option

eg 

cbllink -WL/stack:0x200000 program

will link with the stack size set to double the default value.

If you are building from Visual Studio or Eclipse just add the -WL/stack:<value> to the Additional directives on the COBOL Link property page.

Gael

2 Replies
Micro Focus Expert
Micro Focus Expert

Re: Stacksize in Native Cobol Application

Jump to solution

Hi Sebastian,

If you are using cbllink.exe directly you can use the -WL option

eg 

cbllink -WL/stack:0x200000 program

will link with the stack size set to double the default value.

If you are building from Visual Studio or Eclipse just add the -WL/stack:<value> to the Additional directives on the COBOL Link property page.

Gael

Sebastian Mayer Contributor.
Contributor.

Re: Stacksize in Native Cobol Application

Jump to solution

Thank you very much it works!

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.