I use managed_shared_memory and unordered_map set 3 million records, per record about 1100bytes, total about 3GB data when set success, I clear the map mmediately, but it crash
Asked
Active
Viewed 125 times
0
-
Please post actual code (i.e. copy and paste the text), not images. – Paul R Nov 29 '18 at 10:35
-
The code is too much. I think it's not about the code. When I write a lot of data, the system flush data in backend when I clear data(not flush immediately). I only use boost::unordered_map::clear() function in shared_memory – Eric Xu Nov 29 '18 at 11:23
-
You will need to create a [mcve] in order for people to be able to help you with this. – Paul R Nov 29 '18 at 11:29