[Boost-users] [message_queue.hpp]boost::interprocess_exception::library_error
Hi,
I am trying to use boost message queues for interprocess communincation
between a command and a server. I had been receiving the below exception in
the server.
boost::interprocess_exception::library_error
Below is the server code I had problems with. The exception was consistent
when the maximum message size argument passed to the constructor while
creating a message queue was greater than the size of the data I was trying
to receive.I am trying to receive an integer. When I assigned the
max_msg_size variable a size greater than the size of int, it threw an
exception. When I assigned the size of int, it is working fine. But I want
to understand the correct reason behind the exception. Is it not allowed
to receive a message which is less than the maximum message size because the
name maximum message size itself says that it should only not exceed. I am
working on a 64 bit SUSE 11.
I had even tried to change the /proc/sys/kernel/shmmax value after reading
one of the discussion on the same exception in the BOOST archives which did
not work. Could anyone please help. Please let me know if you need more
information.
#include
participants (1)
-
rohini chandra pallapothu