interprocess

How can I post a Cocoa "sheet" on another program's window?

Using the Apple OS X Cocoa framework, how can I post a sheet (slide-down modal dialog) on the window of another process? Edit: Clarified a bit: My application is a Finder extension to do Subversion version control (http://scplugin.tigris.org/). Part of my application is a plug-in (a Contextual Menu Item for Finder); the bulk of my app...

Boost Message Queue not based on POSIX message queue? Impossible to select(2)?!

I thought I'd use Boost.Interprocess's Message Queue in place of sockets for communication within one host. But after digging into it, it seems that this library for some reason eschews the POSIX message queue facility (which my Linux system supports), and instead is implemented on top of POSIX shared memory. The interface is similar e...

boost::interprocess between Windows service and user application.

Hi, I'm using boost::interprocess to communicates between two applications. When the two applications are launch by the same user, it works great. When one of the application is a service, it fails. I found that the shared media is in fact a file that is created in the "TMP" directory. So it fails because each application is creatin...

How can I load the AIR runtime as a in-process shared library from a C program

I'd like to build a special AIR launcher program in C along the lines of java.exe. I've looked at running AIR programs with a process viewer and was able to locate the AIR runtime DLL that is being used. AIR programs are different than Java in that they are installed as platform-specific executables that bind the AIR runtime as an in-pr...

Interprocess communication between 32- and 64-bit apps on Windows x64

We'd like to support some hardware that has recently been discontinued. The driver for the hardware is a plain 32-bit C DLL. We don't have the source code, and (for legal reasons) are not interested in decompiling or reverse engineering the driver. The hardware sends tons of data quickly, so the communication protocol needs to be pretty...

What is the simplest method of inter-process communication between 2 C# processes?

I want communicate between a parent and child process both written in C#. It should be asynchronous, event driven. I does not want run a thread in every process that handle the very rare communication. What is the best solution for it? ...

Using pipes in C for parent-child IPC makes program block

I am writing a server which fork()'s off a child process when it accepts a socket connection. As the child communicates with a client, it must send some of that information back to the parent. I am using a pipe to accomplish this. The problem is that when I try to do the parent-child IPC, the parent blocks when reading input from the c...

How do I perform a non-blocking fopen on a named pipe (mkfifo)?

If I have a program which creates and attempts to open a named pipe using mkfifo, how can I open a pipe for reading or writing without blocking? Specifically, I'm writing a C program which can be run with or without a gui (written in Java). In the C program, I successfully create the named pipes using mkfifo, however when I do FILE* i...

Dynamically change allocation strategy in boost::vector and boost::matrix

Hi, In my new project i am building a data management module.I want to give a simple template storage type to upper layers like template<typename T> class Data { public: T getValue(); private: boost::numeric::ublas::matrix<T> data; } My aim is, to change allocator of data with some different allocators like Boost.inter process...

Problems with starting a program + DLL multiple times in Windows XP?

We develop a network library that uses TCP and UDP sockets. This DLL is used by a testclient, which is started multiple times at the same PC for a load test. In Windows Vista, it is no problem to start the testclient many times. In Windows XP, starting it up to 5 times is no problem, but if we start it 6 times or more, and then closing ...

Which method is better for sending a stream of images between two processes, local TCP/IP connection or Interprocess communication?

Assuming that I have to copy each image on the stream (I cannnot simply access that data with any mutex protection, it must be copied anyway), which method is better, pros/cons? I would like to know also how much performance loss this implied compared to using the images in the same process. Thanks ...

Boost, Shared Memory and Vectors

Hi, I need to share a stack of strings between processes (possibly more complex objects in the future). I've decided to use boost::interprocess but I can't get it to work. I'm sure it's because I'm not understanding something. I followed their example, but I would really appreciate it if someone with experience with using that library...

Inter process communication

What are the pros and cons of using a file for interprocess communication? Let me give some background of the context I am asking this question in. The problem is the classical producer consumer problem with some constraints. The producers are set of cooperative process running on a cluster of machines and communicate with each othe...

Communication (Interprocess) between applications?

I'm about to write a "server" application that is responsible to talk with external hardware. The application shall handle requests from clients. The clients send a message to the server, and if the server is busy with doing stuff with the hardware the new messages shall be stored in a queue that will be processed later. The client sha...

Simplest way to send messages between Matlab, VB6 and VB.NET programs

We are upgrading a suite of data acquisition and analysis routines from VB6 programs to a mixture of VB.NET, VB6, and Matlab programs. We want to keep the system modular (separate EXEs) so we can easily create specialized stand-alone analysis programs without having to constantly upgrade one massive application. We have used MBInterPro...

What is the best way to do application data exchange in Delphi without sockets?

I need a few of my related applications to communicate to each other (exchange data and initiate actions). Requirements are without packages and no sockets. So I guess that leaves named pipes, WM_CopyData (like Skype does it) and command parameters. What are your best practices? ...

Pass a message to another exe from an exe C#

I have two exe running, c# console programs. From one, I need to tell the second exe to do something? How... ? I looked at (Remotable.CommonAssembly)Activator.GetObject(typeof(Remotable.CommonAssembly) but from here i can call a method of the CommonAssembly(referenced dll) not the exe one's. ...

How can I prevent the parent from blocking when writing to a child?

Recently I had a problem using (pipe |-) when I wanted to communicate between two processes. Basically, the child process couldn't process STDIN as fast as it was filled up by parent. This caused parent to wait until STDIN was free and made it run slow. How big can STDIN be and is it possible to modify it. If yes, what is the best prac...

How can I check that a WCF host is available before I use a channel from a client?

I am creating a windows service that starts a number of slave processes. In each of these slave process I start listening on a named pipe for message from the master process. I currently have the situation where the master process calls a slave via a named pipe before the slave is fully started and starts listening on the named pipe. ...

Have you ever written code that uses the procfs?

Hi, Have you ever written (or encountered) code that uses the procfs (the Linux /proc file system) in non-trivial ways? I have a very nice idea for a kernel patch, and I want to conduct some research and see code examples before I shape my idea. Udi EDIT I'm looking for interesting code examples that would demonstrate advanced usage ...