|
Boost Users : |
Subject: Re: [Boost-users] Information about create_only and open_or_create
From: Manish Kumar (manish_at_[hidden])
Date: 2009-10-26 18:15:49
I am running on Itanium IA64. Still if i keep the size 9999999, still there
will be error.
On Mon, Oct 26, 2009 at 10:58 AM, Christoph Gysin <
christoph.gysin_at_[hidden]> wrote:
> > But i am getting the following defintion for the function.
>
> Sorry, I wasn't reading your post correctly. I was referring to
> open_shared_object.
>
> For me, the following stripped down example throws already:
>
> #include <boost/interprocess/managed_shared_memory.hpp>
> using namespace boost::interprocess;
> int main (int argc, char *argv[])
> {
> managed_shared_memory segment(open_or_create, "MySharedMemory",
> 999999999);
> }
>
> $ ./a.out
> terminate called after throwing an instance of
> 'boost::interprocess::interprocess_exception'
> what():
> Aborted
>
> This is due to an illegal size for the shared memory area on my
> plattform (linux):
>
> $ cat /proc/sys/kernel/shmmax
> 33554432
>
> Shouldn't the exception report "invalid argument" if size > SHMMAX?
>
> manish4gupta, what system are you running the example on?
>
> Chris
> --
> echo mailto: NOSPAM !#$.'<*>'|sed 's. ..'|tr "<*> !#:2" org_at_fr33z3
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
-- Manish Gupta Bioinformatics Software Developer Synamatix Sdn Bhd. Kulalumpur, Malaysia
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