Boost.Interprocess is a part of the C++ Boost library. It simplifies the use of common interprocess communication and synchronization mechanisms.
Questions tagged [boost-interprocess]
371 questions
0
votes
1 answer
How to get know that boost::interprocess::message_queue was removed from system?
I create Sender/Receiver wrapper based on boost::interprocess::message_queue for sending messages from one process and receiving it in another, you can view sources here: https://gist.github.com/onto/c322bb0a33433b775966
There is a problem, if I…

Anton Lashkov
- 280
- 3
- 10
0
votes
1 answer
Under Linux boost::interprocess::create_or_open_file change the file type
I'm porting a source code to open/read/write a file shared between several process. It works well under windows and as it was mainly using boost::interprocess (1.44) I didn't expecting too many issue but I found something weird:
//pseudo…

alexbuisson
- 7,699
- 3
- 31
- 44
0
votes
2 answers
Again on error C2248
the error C2248 is not new on stackoverflow. Unfortunately I'm a beginner in using Boost library and I'm not able to fix the error in my code:
// .h file
using namespace boost::interprocess;
using namespace std;
class CMsqQueueMngr {
public:
…

cris1967
- 3
- 3
0
votes
1 answer
Eigen fixed-size matrices in shared memory using boost interprocess
I like to place Eigen fixed-size matrices into the shared memory.
But on execution I am getting the following error:
/usr/include/eigen3/Eigen/src/Core/DenseStorage.h:78:
Eigen::internal::plain_array

Max
- 340
- 2
- 15
0
votes
1 answer
boost::interprocess::message_queue stops working in Release mode with visual C++
I am using boost::interprocess::message_queue, with VC++ (in Microsoft Visual Studio 2005).
It is working properly in Debug mode.
Then when I compile my program in Release mode it stops working, every time I call "try_send" it returns false.
I don't…

0x26res
- 11,925
- 11
- 54
- 108
0
votes
0 answers
Boost Fixed_Managed_Shared_Memory Hangs
I am attempting to do a relatively simple task using boost interprocess semaphore and shared memory. I want to fixed buffer of data shared between two processes, where the first process is a producer and the second process is a consumer. The buffer…

jekelija
- 257
- 4
- 16
0
votes
2 answers
Can boost do shared memory between processes that are on different CPUs
If i have a multiprocessor with 2 CPUs, and i have a process running on CPU 1, and another process on CPU 2, is boost::interprocess shared memory be used between them? If so, how is that implemented? I couldn't find any documentation in the boost…

jekelija
- 257
- 4
- 16
0
votes
1 answer
C++ Boost::Interprocess Shared memory with struct
I search to shared a struct between two process. But I have not success.Can you help to understand ?
Here is my code for first process :
#include
#include…

Palenty
- 31
- 4
0
votes
1 answer
Is managed_mapped_file able to increase file size due to allocation?
I want to work with memory mapped files using boost::interprocess::managed_mapped_file. But cannot find in the documentation details about memory allocation by it.
Namely I want to know does allocate() fail with boost::interprocess::bad_alloc error…

Mihran Hovsepyan
- 10,810
- 14
- 61
- 111
0
votes
1 answer
Boost.Interprocess - created managed_shared_memory could not be found
I'm about to use shared memory for interprocess communication (obviously ;) between a xulrunner extension (component) and a plugin (NPAPI). Both are written in C++!
I was following the instructions of the boost lib document
Now: The creation of the…

dachiller
- 1
- 2
0
votes
1 answer
Boost managed_windows_shared_memory find() crash
I am trying to develop a dll plugin for a third party application which reads data generated by another exe. I am using boost::managed_windows_shared_memory for this.
The exe creates the shared memory and writes an object to it which is working…

Maverick
- 33
- 6
0
votes
0 answers
Interprocess: managed_windows_shared_memory used with native Windows Memory-Mapped Files
Is it possible to have one Server App using Boost’s managed_windows_shared_memory to create a memory segment and an object (an integer or a string, for example), and another Client that uses the native Windows API (i.e. the Memory-Mapped Files) to…

Ingrid Wu
- 81
- 1
- 1
- 4
0
votes
0 answers
Shared Memory Hashmap with variable datatypes
I am planning to develop a high performance local data storage.
Several processes should be able to attach data to that data storage.
The data vary from basic int values over strings to byte arrays (raw images).
Other process should be able to…

hami
- 443
- 5
- 13
0
votes
0 answers
Use boost::interprocess to memory-map 30GB file in various "chunks"?
I can memory-map a whole file using the boost::interprocess package:
boost::interprocess::file_mapping* fm = new file_mapping(FilePath, boost::interprocess::read_only);
boost::interprocess::mapped_region* mr = new mapped_region(*fm,…

user997112
- 29,025
- 43
- 182
- 361
0
votes
1 answer
What happens if process crashes when flushinig mapped file?
I'm using boost::interprocess::managed_mapped_file to do IPC under linux. In short one process can write objects into files (method construct) for another process to read (method find). However what if the process crashes while writing? Will boost…

old_bear
- 279
- 1
- 5
- 14