Exploring the robustness of using SWMR to write and read and display a realtime-ish stream of data. In c/c# on Windows.
If I have one app writing and another reading, it’s working as expected.
If I have both operations in one app, it works then fails at a random time with e,g, System.AccessViolationException: ‘Attempted to read or write protected memory’ when reading.
If there are any ideas, I’d be grateful.