Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::interprocess::managed_shared_memory uses C: - Need to change this
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2009-05-19 12:08:15


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net