boost managed shared memory: RUN FAILED

Hello,
I try to run an example from this online book(
http://en.highscore.de/cpp/boost/interprocesscommunication.html) and I got
"RUN FAILED (exit value 1, total time: 938ms) ". I am using Netbeans.
This is the example:
#include

Hello,
This is the details of the error I got (with Netbeans) :
12 [main] cppapplication_4 3608 exception::handle: Exception:
STATUS_ACCESS_VIOLATION
371 [main] cppapplication_4 3608 open_stackdumpfile: Dumping stack
trace to cppapplication_4.exe.stackdump
RUN FAILED (exit value 35 584, total time: 2s)
Many thanks
2012/11/30 Olivier Austina
Hello,
I try to run an example from this online book( http://en.highscore.de/cpp/boost/interprocesscommunication.html) and I got "RUN FAILED (exit value 1, total time: 938ms) ". I am using Netbeans. This is the example:
#include
#include <iostream> int main() { boost::interprocess::shared_memory_object::remove("Highscore"); boost::interprocess::managed_shared_memory managed_shm(boost::interprocess::open_or_create, "Highscore", 1024); int *i = managed_shm.construct<int>("Integer")(99); std::cout << *i << std::endl; std::pair
p = managed_shm.find<int>("Integer"); if (p.first) std::cout << *p.first << std::endl; } Thanks very much. -- Regards Austina
-- Regards Austina

On Fri, Nov 30, 2012 at 10:00 PM, Olivier Austina wrote: Hello, This is the details of the error I got (with Netbeans) : 12 [main] cppapplication_4 3608 exception::handle: Exception:
STATUS_ACCESS_VIOLATION
371 [main] cppapplication_4 3608 open_stackdumpfile: Dumping stack
trace to cppapplication_4.exe.stackdump RUN FAILED (exit value 35 584, total time: 2s) Many thanks 2012/11/30 Olivier Austina Hello, I try to run an example from this online book(
http://en.highscore.de/cpp/boost/interprocesscommunication.html) and I
got "RUN FAILED (exit value 1, total time: 938ms) ". I am using Netbeans.
This is the example: #include int main()
{
boost::interprocess::shared_memory_object::remove("Highscore");
boost::interprocess::managed_shared_memory managed_shm(boost::interprocess::open_or_create, "Highscore", 1024);
int *i = managed_shm.construct<int>("Integer")(99);
std::cout << *i << std::endl;
std::pair Thanks very much.
--
Regards
Austina --
Regards
Austina _______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users You may have more luck getting an answer if you post the generated stack
dump (cppapplication_4.exe.stackdump).

Hello,
I send to you the program. I take it from an example on the boost site :
#include
On Fri, Nov 30, 2012 at 10:00 PM, Olivier Austina < olivier.austina@gmail.com> wrote:
Hello,
This is the details of the error I got (with Netbeans) :
12 [main] cppapplication_4 3608 exception::handle: Exception: STATUS_ACCESS_VIOLATION 371 [main] cppapplication_4 3608 open_stackdumpfile: Dumping stack trace to cppapplication_4.exe.stackdump
RUN FAILED (exit value 35 584, total time: 2s)
Many thanks
2012/11/30 Olivier Austina
Hello,
I try to run an example from this online book( http://en.highscore.de/cpp/boost/interprocesscommunication.html) and I got "RUN FAILED (exit value 1, total time: 938ms) ". I am using Netbeans. This is the example:
#include
#include <iostream> int main() { boost::interprocess::shared_memory_object::remove("Highscore"); boost::interprocess::managed_shared_memory managed_shm(boost::interprocess::open_or_create, "Highscore", 1024); int *i = managed_shm.construct<int>("Integer")(99); std::cout << *i << std::endl; std::pair
p = managed_shm.find<int>("Integer"); if (p.first) std::cout << *p.first << std::endl; } Thanks very much. -- Regards Austina
-- Regards Austina
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
You may have more luck getting an answer if you post the generated stack dump (cppapplication_4.exe.stackdump).
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Regards Austina
participants (2)
-
Joshua Boyce
-
Olivier Austina