in reply to Re^2: Memory mapped file questions
in thread Memory mapped file questions
How much of your C# code do you understand?
Reading your code, there is the line:
MemoryMappedFile.CreateOrOpen("Test", 1000, MemoryMappedFileAccess.Rea +dWrite);
This suggests that the code opens or creates a file named Test in the current directory, and as jcb suggests, you could use that as the filename.
If this is your code, maybe you want to use a different approach than a memory mapped file. If this is not your code, consider talking to the original author about using a different serialization scheme, like JSON, or a well-defined binary layout, or just not using a memory mapped file when a plain file will do just as well.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Memory mapped file questions
by faustf (Novice) on Oct 10, 2020 at 09:21 UTC | |
by Corion (Patriarch) on Oct 10, 2020 at 09:29 UTC | |
by faustf (Novice) on Oct 10, 2020 at 16:18 UTC | |
by Corion (Patriarch) on Oct 10, 2020 at 18:47 UTC | |
by faustf (Novice) on Oct 11, 2020 at 07:46 UTC | |
|