Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CobolScript and shm1.cbl

jlcca

Programmer
Jul 28, 2010
22
Canada
I am running...

Code:
E:\CobolScript>e:\utils\cobolscript.exe
CobolScript Professional Edition - release 4.0 MS Windows
Copyright (c) 1996-2025 Matt Dean

Code:
Windows Pro x64
Windows 10 [Version 10.0.19045.5131]

I am not able to successfully execute the shm1.cbl program...

Code:
E:\CobolScript>e:\utils\cobolscript.exe shm1

CobolScript Error Number: 0454
CobolScript Error Message: Cannot create shared memory pool for your Shared Memory ID.

CobolScript Error Number:  0441
CobolScript Error Message: Cannot create shared memory. SHMSIZE

Source Line    Internal Line
Number         Number            Source Line
=================================================================
00006          [00005]           CREATESHMPOOL SHMID SHMSIZE

I get the same error with the Demo version...

Code:
E:\CobolScript>demo\cobolscript.exe
CobolScript Professional Edition - release  Demo 4.0 MS Windows
Copyright (c) 1996-2025 Matt Dean

Ref: https://sites.google.com/view/cobolscripting/home/sample-programs#h.p_KEi1Zqk5Ldpj

Thanks from Joe
 
The CREATESHMPOOL uses the Windows fucntion CreateFileMapping() to accomplish this. It looks as if failed internally and GetLastError() returns 6 (ERROR_INVALID_HANDLE). I will investigate further.

Best Regards,

Matt Dean
 
Thanks Matt.

The updates you sent me worked.

Regards,

Joe
 

Part and Inventory Search

Sponsor

Back
Top