boost::interprocess::managed_shared_memory uses C: - Need to change this
I am using boost::interprocess::managed_shared_memory to share the data between processes. But the shared memory internally creates memory mapped file in C: dirve. if anyone knows how to change the configuration to use some other drive instead of C: as my production environment doesnt have much space in C: drive. -- View this message in context: http://www.nabble.com/boost%3A%3Ainterprocess%3A%3Amanaged_shared_memory-use... Sent from the Boost - Users mailing list archive at Nabble.com.
Moorthi wrote:
I am using boost::interprocess::managed_shared_memory to share the data between processes. But the shared memory internally creates memory mapped file in C: dirve. if anyone knows how to change the configuration to use some other drive instead of C: as my production environment doesnt have much space in C: drive.
Change the temporary directory of the windows user or change the code here: boost/interprocess/detail/tmp_dir_helpers.hpp inline void tmp_filename(const char *filename, std::string &tmp_name) { const char *tmp_dir = get_temporary_path(); //<---- HERE Best, Ion
Thanks and it works fine. -- View this message in context: http://www.nabble.com/boost%3A%3Ainterprocess%3A%3Amanaged_shared_memory-use... Sent from the Boost - Users mailing list archive at Nabble.com.
participants (2)
-
Ion GaztaƱaga
-
Moorthi