OPENSEQ – locks differently in Windows than UNIX

This is a feature of Windows and cannot be resolved by Reality.

When writing common platform Reality user code you still have to be aware of differences when accessing platform files.

In UNIX deleting an "open file" merely removes the entry from the directory structure. Processes with the "file open" can continue to use the disk space. The disk space in use is only released when all processes have closed the file.

In Windows opening a file places a lock on the dictionary so that the file cannot be deleted until all processes have closed the file.

So, on Windows you need to use CLOSESEQ before deleting items from the Windows file structure, in UNIX you can just delete them.

Therefore, if you want to write common host platform code, you have to cater for such underlying deferences.

 

 

Back to articles