Questions tagged [cross-process]

27 questions
17
votes
3 answers

Should I dispose a Mutex?

I'm working on 2 Windows Services that have a common database which I want to lock (cross-process) with a system Mutex. Now I'm wondering whether it's ok to just call WaitOne() and ReleaseMutex() in a try-finally block or should I also dispose the…
Koen
  • 3,626
  • 1
  • 34
  • 55
15
votes
2 answers

Named semaphores in Python?

I have a script in python which uses a resource which can not be used by more than a certain amount of concurrent scripts running. Classically, this would be solved by a named semaphores but I can not find those in the documentation of the…
Boaz
  • 25,331
  • 21
  • 69
  • 77
11
votes
2 answers

Is Boost IPC any good?

My default choice for cross-platform IPC would be boost, but I saw it criticised in two different forums when I asked about it and this concerned me. Perhaps this was simply a coincidence, so what are the thoughts on boost IPC and choosing a…
Mr. Boy
  • 60,845
  • 93
  • 320
  • 589
9
votes
6 answers

Cross-process read-write synchronization primative in .NET?

Is there a read/write locking mechanism that works across processes (similar to Mutex, but read/write instead exclusive locking)? I would like to allow concurrent read access, but exclusive write access.
Jeremy
  • 44,950
  • 68
  • 206
  • 332
5
votes
1 answer

Get ListView item text from other window

I want to make a little application that changes the default playback device in windows 7. The only solution was to interact with the Sound Applet. I succeeded to get the handle to the SysListView32 window that has the devices name but i cant get…
Sp3ct3R
  • 715
  • 1
  • 12
  • 24
4
votes
3 answers

How to use OpenProcessToken, AdjustTokenPrivileges, and GetExitCodeProcess in VC++ 2005

I read a couple of posts on how to check if a process has exited from a different process (I realize some people get hung up on semantics here, but just humor me) and I tried to implement it but am running into the error code 5…
Ian
  • 4,169
  • 3
  • 37
  • 62
3
votes
2 answers

Send fast textinput to another process (Window)

I am writing a C# WPF program which sends text messages to another program's window. I have a macro program as part of my keyboard drivers (Logitech g15) which already does this, though it does not send keystrokes directly to the process, but to the…
Krusager
  • 33
  • 1
  • 3
3
votes
5 answers

Cross-process interaction under C++

Please help, how can I organize the process-process data exchange (in Windows, if that matters)? I have process1.exe which calls process2.exe with a few command line arguments. I want to track "progress" of process2 from process1 (say, some int…
artyom.stv
  • 2,097
  • 1
  • 24
  • 42
3
votes
2 answers

What options do I have for SSIS cross-process communication?

I would like to store an integer variable that gets incremented and decremented (a counting semaphore for limiting concurrent requests to an external API). This would be easy, except I need a way to read/write this variable from an SSIS package that…
Jordan
  • 31,971
  • 6
  • 56
  • 67
3
votes
1 answer

How to implement cross process lock in android?

I'm writing a library project for multiple APPs to use. And for some reason, I must make a function mutual exclusion for different APPs, so I need a cross-process lock. But as far as I know, in android APPs can only write to it's own file's…
teejoe
  • 673
  • 2
  • 6
  • 17
3
votes
1 answer

How to disable dialog "switch to"-"retry"-"cancel"

Comunicate between two processes, often pop up boring dialog "This action cannot be completed because the other application is busy.  Choose 'Switch To' to activate the busy application and correct the problem" Then it offers 3 buttons:  Switch…
ldlchina
  • 927
  • 2
  • 12
  • 31
2
votes
3 answers

2-way Cross Process Communication

I am working on a project that i want to have a plugin-sandbox like System, However i am having issues working out 2-Way Real time Cross Process Communication. At first i thought of WCF, as it can pass object Metadata, but then soon realized that…
p1p3l1n3
  • 51
  • 2
  • 4
2
votes
3 answers

How can I start/stop applications on a different computer?

Is it possible for one C# (desktop) application to start and stop applications on another machine? I don't mean in a malicious sense, or even over the internet. I have two computers in a room and I need an app on one to start (and then stop) and app…
Tom Wright
  • 11,278
  • 15
  • 74
  • 148
1
vote
1 answer

Sync object for creating an object once only

I need some kind of cross-process synchronisation object that will allow me to create and initialise an object once and then close and dispose it once only when the last instance exits. e.g. lifetime would go something like: new Instance 1: Create…
user380689
  • 1,766
  • 4
  • 26
  • 39
1
vote
1 answer

Most Compatible Inter-Process Communication protocol

I am working on an media application for which I would like to provide an external API library that would allow another application to communicate with mine an query status information. My application is written in C# and the API DLL will be the…
Adam Haile
  • 30,705
  • 58
  • 191
  • 286
1
2