Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Fix getContent() not to use mapName for Unix #31

Merged
merged 2 commits into from
Oct 3, 2019
Merged

Conversation

sellabae
Copy link
Collaborator

@sellabae sellabae commented Oct 3, 2019

I had errors running the program
So I reverted the change on streamReader in getContent()
since mapName used in OpenExisting() is not supported in Unix

@sellabae sellabae added the bug Something isn't working label Oct 3, 2019
@sellabae sellabae added this to In progress in Milestone1 via automation Oct 3, 2019
@sotheanithsok
Copy link
Owner

If you not using openExisting, the program will crash if you try to access same file after you search twice one after the another. Thus, I would not advise to go through with this change. Also some of the unit test will fail due to file access error too.

@sellabae
Copy link
Collaborator Author

sellabae commented Oct 3, 2019

I see why we need to have some change to the code.
Then, let's find another way to solve that problem.

@sotheanith please check this reference.

@sellabae sellabae moved this from In progress to To do in Milestone1 Oct 3, 2019
Since MemoryMappedFile can't be name due to compatibility issues with other OS, dispose of MemoryMappedFile after reading from it through the implementation of IDisposable
@sellabae
Copy link
Collaborator Author

sellabae commented Oct 3, 2019

This needs further enhancement later, using custom MemoryMappedFile managers.

@sellabae sellabae merged commit d0ab00e into master Oct 3, 2019
Milestone1 automation moved this from To do to Done Oct 3, 2019
@sellabae sellabae deleted the hotFix_mappedFile branch October 3, 2019 07:52
@sellabae sellabae moved this from Done to Approved Pull Request in Milestone1 Oct 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
Milestone1
  
Approved Pull Request
Development

Successfully merging this pull request may close these issues.

None yet

2 participants