Skip to main content

Problem:

I test my application with  Server Express . Now it is not possible to open  a file in a module of the application  when this file is open in an other module .

Resolution:

With Server Express, by default , if the file is open with lock mode exclusive in a module , no other module can open this file, even if this other module is in the same run unit .   

To give permission for opening by an other module in a same run unit , it is necessary to modify the value of the RUNITLOCKDETECT option of  the file handler configuration file .

An exemple is :

echo '[XFH-DEFAUKT]' > my.cfg

echo 'RUNITLOCKDETECT=OFF' >> my.cfg

EXTFH=./my.cfg

export EXTFH

cobrun prog  

Old KB# 3716