You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.
In our non-trivial co-simulation setup, a separate (operating system) process is started to perform the simulation. For various reasons, this process is not terminated
immediately after the simulation run.
'csv-compare/Compare' from the modelica-tools then fails to open the output file produced by FmuChecker, because the sub-ordinate process still has an (inherited) open file descriptor to the output file and the file has been opened using the usual Microsoft file locking semantics.
This problem can be solved by marking the file descriptor close-on-exec. In the Win32 API, this is achieved by calling SetHandleInformation on the file descriptor (handle) with the HANDLE_FLAG_INHERIT set in the dwMask parameter and clear in the dwFlags parameter.
See SetHandleInformation. Alternatively, the output file could be opened with more liberal SHARE_DENY settings.
The text was updated successfully, but these errors were encountered:
In our non-trivial co-simulation setup, a separate (operating system) process is started to perform the simulation. For various reasons, this process is not terminated
immediately after the simulation run.
'csv-compare/Compare' from the modelica-tools then fails to open the output file produced by FmuChecker, because the sub-ordinate process still has an (inherited) open file descriptor to the output file and the file has been opened using the usual Microsoft file locking semantics.
This problem can be solved by marking the file descriptor close-on-exec. In the Win32 API, this is achieved by calling
SetHandleInformation
on the file descriptor (handle) with theHANDLE_FLAG_INHERIT
set in thedwMask
parameter and clear in thedwFlags
parameter.See SetHandleInformation. Alternatively, the output file could be opened with more liberal
SHARE_DENY
settings.The text was updated successfully, but these errors were encountered: