by Granger » Sun Jun 25, 2017 10:28 pm
My theory, without looking into it with a debugger, is that the files are (at least on windows) locked by another thread (from writing) and inaccessible when trying to open them (for reading) from other threads.
Or, in case the opening succeeds (then sharing the handle between the writer and the map reader) the cursor is at the end (from the write that just happened).
Or, similiar to the last scenario, the writer closes the handle before the reader read the data.
Linux most likely behaves differently (more sanely, most times, in my experience).
⁎ Mon Mar 22, 2010 ✝ Thu Jan 23, 2020