Skip to main content

Stacksize in Native Cobol Application

  • Oct 1, 2019 12:35 PM UTC
  • 2 replies
  • 18 views

 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

2 replies

Gael Wilson
Forum|alt.badge.img+1
  • Rocketeer
  • Oct 1, 2019 1:09 PM UTC

 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

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


  • Oct 1, 2019 10:37 PM UTC

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

Thank you very much it works!