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:


inline void tmp_filename(const char *filename, std::string &tmp_name)
    const char *tmp_dir = get_temporary_path(); //<---- HERE



Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at