Questions tagged [interprocess]

A capability supported by some operating systems that allows one process to communicate with another process. The processes can be running on the same computer or on different computers connected through a network. It enables one application to control another application, and for several applications to share the same data without interfering with one another.

412 questions
0
votes
1 answer

How to construct vector with given count in boost interprocess and add elements to it

I've started to learn boost interprocess library and I encountered 2 problems so far. The first one is related to construction of vector with passing its size. shm.construct("MyVector")(MAX_INPUT_SIZE, std::make_pair{"not_used", 0.0},…
bladzio
  • 414
  • 3
  • 15
0
votes
1 answer

crash in boost::interprocess::shared_memory_object if use /MTd

I have a simple project running under Windows. It consists of two DLLs and one EXE. The EXE loads the two DLLs. Each will create a shared memory object in a class instatiated by a std::unique_ptr globaly. The crash happens during FreeLibrary and…
cdannebe
  • 11
  • 2
0
votes
0 answers

Reccomended way to share data from a running C++ exe into .NET application, preferably a WCF service

I have a C++ application that maintains a couple of in memory data stores (vector/map in c++). I need to access these data stores from a C# application, preferably some kind of service (WCF) so I can expose it further to a web application. I will be…
renz
  • 165
  • 3
  • 12
0
votes
0 answers

Sharing data between C++ and python, which implements keras\tensorflow

I am working on an application that uses C++ code and python code. Data is shared between the two scripts, C++ <---> python. Right now, I achieve this via SQLite, which very roughly takes care of concurrency , and it works correctly. The problem is…
maurock
  • 527
  • 1
  • 7
  • 22
0
votes
1 answer

Why can't I set some memory created from one process through another using Boost.Interprocess?

Here is the server : Here is the client : I create two independent C++ console apps, one called server and other called client. Server creates and shares a memory, the client mostly reads it, but sets some signalling server to exit. Although the…
0
votes
2 answers

singleton implementation problem in C#

--ConsoleApplication 1 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication2 { public class MsgService { private static CreateConnectionToA _instanceA; private…
Asdfg
  • 11,362
  • 24
  • 98
  • 175
0
votes
1 answer

Change a process' variable

I have a python program that periodically does some jobs according to that value of a given global variable "a". How can another python program change the value of "a" to (let's say) 20? a = 10 def run_program(): global a while True: …
Leo
  • 75
  • 1
  • 5
0
votes
0 answers

Optimal Methods to Check if a Process is Running in Windows C++

(Edited for brevity, clarity, and utility) My program (B) monitors another program (A) that is not my own. I would like to detect when that program exits or crashes. My access to the source code is limited and I would prefer a solution that does not…
iamoumuamua
  • 351
  • 2
  • 11
0
votes
1 answer

When you call a java standalone application from an eclipse workbench inside a plugin, this indicates interprocess communication?

The fact that from an eclipse plugin i invoke a swing java application from my own library we can say that this is interprocess communication since eclipse is by itself a java application running on top of a jvm and then i load into the jvm another…
curious
  • 1,524
  • 6
  • 21
  • 45
0
votes
1 answer

Shared memory created by boost message queue is too small?

I am creating an application where several processes are communicating through boost message queues. The queues are created using the message queue constructor as message_queue(open_or_create, name, max_num_msg, max_msg_size); I am using…
Tom
  • 23
  • 4
0
votes
1 answer

Using HTTP requests for inter process communication

As a learning experience, I would like to create a small cluster of inter communicating processes, on a single machine, sending and receiving requests from each other without a shared parent. I have some understanding of the TCP/IP stack, but I have…
Paul
  • 360
  • 3
  • 10
0
votes
2 answers

Is there any cross-platform library for accepted TCP connections interprocess exchange?

Any Boost like ones? Or any other Windows, Mac, Linux library's for passing established TCP connection from one process to another? So I actually did not even know it is possible but seems it is! So I defiantly want to use such feature in my…
Rella
  • 65,003
  • 109
  • 363
  • 636
0
votes
1 answer

Which data format for efficient socket communication in C++/Qt

I want to implement a profiler which tracks the state of the JVM in real time. I am not sure which data format would be appropriate for this task as I have to receive updates of the state of the JVM. I thought XML would be great, but with every…
Konrad Reiche
  • 27,743
  • 15
  • 106
  • 143
0
votes
3 answers

WPF: MainWindow black background

I am trying to open the MainWindow from the system tray if the application is already running and the user tried to run a new instance of the program (single instance) I was following this tutorial :…
Muhannad
  • 467
  • 4
  • 28
0
votes
1 answer

Interprocess communication heap memory

Can heap memory be shared between 2 different processes? In boost interprocess documentation,there is a statement that managed heap memory does not create system wide resources
p.k
  • 37
  • 3