FileIO FileClose in ARSim

Hi,

I am facing the problem, that after creating, writing and closing a file on the user partition,

it can not be deleted because it is still held open by the ARSim (AS6).

The FileClose FB returns ERR_OK status , so it should be closed but if i want to delete it manually or

with the FileDelete FB, it is blocked because it is still open in the ARSim…

In case of another file, which i only read, i can close the file and delete the file with no problems.

So do i have to do something specific in case of a file write?

If i only read the file I open it with mode fiREAD_ONLY and if i have to write with mode fiREAD_WRITE.

I have never seen this issue before and am a quite frequent user of FileIO.
Could you maybe share us the bits of your code that do this action, so that it is possible to evaluate if that is an issue in the library or the code itself?

Cause usually if you do file create, file write and then file close on the id of the file that you “opened” with file create it also closes it successfully.