terminate called after throwing an instance of
'boost::interprocess::interprocess_exception'
what(): File exists
Aborted
What is the cause of this error. Thanks in advance.
--
View this message in context: http://www.nabble.com/error-in-recreation-of-shared-memory-using-boost%3A%3A-interprocess-tp25781436p25781436.html
Sent from the Boost - Users mailing list archive at Nabble.com.
_______________________________________________
Boost-users mailing list
Boost...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
Please read the documentation:
http://www.boost.org/doc/libs/1_40_0/doc/html/boost/interprocess/shared_memory_object.html
...
shared_memory_object(create_only_t, const char * name, mode_t mode);
Creates a shared memory object with name "name" and mode "mode", with
the access mode "mode" If the file previously exists, throws an error.
shared_memory_object(open_or_create_t, const char * name, mode_t mode);
Tries to create a shared memory object with name "name" and mode
"mode", with the access mode "mode". If the file previously exists, it
tries to open it with mode "mode". Otherwise throws an error.
...
Christoph
--
echo mailto: NOSPAM !#$.'<*>'|sed 's. ..'|tr "<*> !#:2" org@fr33z3