UnauthorizedAccessException on MemoryMappedFile in C# 4

后端 未结 4 1910
醉梦人生
醉梦人生 2021-01-11 12:20

I wanted to play around with using a MemoryMappedFile to access an existing binary file. If this even at all possible or am I a crazy person?

The idea would be to ma

4条回答
  •  臣服心动
    2021-01-11 12:54

    Using the .CreateViewStream() from the instance of MemoryMappedFile removed the error from my code. I was unable to get .CreateViewAcccessor() working w/the access denied error

提交回复
热议问题