Problem:
If COBDIR is defined with the correct values, as an environment variable for the Windows system, there are no compilation errors.
When it is removed from the environment variables in the Windows system and defined with the same values in the Project Properties in Net Express IDE, compilation errors are seen:
ASLM: Semaphore failure.
ASLM: Errno 1002
Rebuild complete with errors
Resolution:
The COBDIR environment variable lists the paths of the COBOL system directories where INT, GNT, LBR, DLL and EXE files, which are used by an application, occur. Setting this in the IDE, will cause the COBOL runtime to look only in the path specified. You should set the COBDIR environment variable in the Windows System. If you do set the COBDIR environment variable in the IDE, you will have to prefix your path with '%COBDIR%;' to ensure the application finds the run-time files needed, for example:
Variable - COBDIR
Value - %COBDIR%;"C:\\your program path"
