Interesting... can you define what you mean by running the code "at the same time"? I would expect that once the disconnect happens then the other instance would be able to write with no problem.
By "at the same time", I mean that there are two instances of the app running but they may not be accessing the NV exactly at the same time. In our app, once an NV is conntected to the NV is not disconnected until that app is done with it. It may hold the NV for several minutes.
Also, we were running multiple apps on the same PC. We noticed different results if the apps were on different PCs.
We did at times receive that "
general access denied" error you mentioned, but it didn't seem consistent. However, I did discover a bug that was causing a disconnect when it should not have been. This has been fixed and we're currently retesting.
So, currently we are trying to figure out:
1. Does it makes a difference if the apps are run on the same PC or different PCs?
2. Once an app disconnects (by calling disconnect) from a single writer NV, can another app get control of that NV?