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 }}
Repository navigation
Memory Mapped files access control classes missing in dotnet core #48793
This is a requirement for me as my team have got some bug reports that our existing code which uses MemoryMapped files CreateNew() method is reporting a file not found error on some user's machines.
requires dotnet 4 (or 5) but our software is built on dotnet core 3.1.
Would it be possible to add this feature, which it seems some of your dotnet engineers already have an implementation of, please? @JeremyKuhne@carlossanlop
I ran into the same problem and found a hacky workaround using the MutexSecurity api from System.Threading.AccessControl (Mutex and MemoryMappedFile are both kernel objects).
Activity
reejk commentedon Aug 20, 2024
I ran into the same problem and found a hacky workaround using the
MutexSecurityapi fromSystem.Threading.AccessControl(MutexandMemoryMappedFileare both kernel objects).Tested on .NET 6 and Windows 11
ChrisUnityArto commentedon Aug 21, 2024
Thanks Reejk. Good to know!
Unfortunately the product I was working on has been discontinued and I'm working on something else... !
The version of dotnet we were on is quite old now too so I will close this.