[interprocess]files locations for mutex and named shm
the default location for named mutexes and named shared memory is %ROOT%\Documents and Settings\%USER%\Local Settings\Temp\boost_interprocess\... How can i change it? Thanks
Eugen Stoianovici wrote:
the default location for named mutexes and named shared memory is %ROOT%\Documents and Settings\%USER%\Local Settings\Temp\boost_interprocess\... How can i change it? Thanks
You can't, unless you modify the code in: boost/interprocess/detail/temp_dir_helper.hpp Why do you want to change the location of those files? Ion
Ion Gaztañaga wrote:
Eugen Stoianovici wrote:
the default location for named mutexes and named shared memory is %ROOT%\Documents and Settings\%USER%\Local Settings\Temp\boost_interprocess\... How can i change it? Thanks
You can't, unless you modify the code in:
boost/interprocess/detail/temp_dir_helper.hpp
Why do you want to change the location of those files?
Ion Hi Ion, I have a larger application an i would like to have all temporary files in one place. It would be easier to maintain for end users. I already changed temp_dir_helper but i was asking if there was a better way.
Thanks for your reply, Eugen Stoianovici
Ion Gaztañaga wrote:
You can't, unless you modify the code in:
boost/interprocess/detail/temp_dir_helper.hpp
Why do you want to change the location of those files?
Ion This is only a problem if you run processes with different users. Ex: if you're using shared memory between an user app and a service, the service will look for the segment in C:\Windows\Temp\ and the user app will look for it in C:\Documents and settings\user\local settings\etc. My changes should go in the temp_dir_helpers.hpp file, right?
Thanks, Eugen Stoianovici
Eugen Stoianovici wrote:
Ion Gaztañaga wrote:
You can't, unless you modify the code in:
boost/interprocess/detail/temp_dir_helper.hpp
Why do you want to change the location of those files?
Ion This is only a problem if you run processes with different users. Ex: if you're using shared memory between an user app and a service, the service will look for the segment in C:\Windows\Temp\ and the user app will look for it in C:\Documents and settings\user\local settings\etc. My changes should go in the temp_dir_helpers.hpp file, right?
Good point. I'll try to see if I can unify this when I have a bit of time. Maybe we can find a common directory for all processes. Any hint or suggestion?
Thanks, Eugen Stoianovici
Regards, Ion
Ion Gaztañaga wrote:
Eugen Stoianovici wrote:
Ion Gaztañaga wrote:
You can't, unless you modify the code in:
boost/interprocess/detail/temp_dir_helper.hpp
Why do you want to change the location of those files?
Ion This is only a problem if you run processes with different users. Ex: if you're using shared memory between an user app and a service, the service will look for the segment in C:\Windows\Temp\ and the user app will look for it in C:\Documents and settings\user\local settings\etc. My changes should go in the temp_dir_helpers.hpp file, right?
Good point. I'll try to see if I can unify this when I have a bit of time. Maybe we can find a common directory for all processes. Any hint or suggestion?
On XP C:\Windows\Temp would be a good idea but i don't know if it is writable by all users. I'm going to look into it when i get the chance, but for now, changing the "TMP" env to something else is enough for me. Thanks again, Eugen Stoianovici
Eugen Stoianovici wrote:
Good point. I'll try to see if I can unify this when I have a bit of time. Maybe we can find a common directory for all processes. Any hint or suggestion?
On XP C:\Windows\Temp would be a good idea but i don't know if it is writable by all users. I'm going to look into it when i get the chance, but for now, changing the "TMP" env to something else is enough for me.
Ok. Thanks for the info.
Thanks again, Eugen Stoianovici
Regards, Ion
participants (2)
-
Eugen Stoianovici
-
Ion Gaztañaga