Make sure that only one instance of the application is running on the system.
Questions tagged [single-instance]
250 questions
0
votes
1 answer
Electron second instance's command line arguments are corrupted?
I am following the example for requestSingleInstanceLock() in the Electron's documentation. For some reason the second instance's command line arguments seem corrupted if the arguments have quoted values with spaces inside. The initial process.argv…

George S.
- 613
- 5
- 11
0
votes
0 answers
C# find already running app instance window handle for HWND_BROADCAST
I am new to C# and IPC, trying to make an app that is single instance and when another process tries to start it wake up already running app instance and pass the args to it. Everything is working according to my needs. But one problem is that I…

aadi1295
- 982
- 3
- 19
- 47
0
votes
0 answers
How to call a single instance from a different class in java?
I want to get an attribute from an specific class, the problem is that this class where i'm trying to get the attribute from is an abstract superclass and the instance that i'm trying to call is from a child class of this superclass, I can not call…

Santiago
- 3
- 7
0
votes
1 answer
Using PictureBox_Paint from ApplicationEvents.vb
I'm currently working on a small single instance application that is called by an external application using command line parameter. I'll try to be clear on that ;)
So I have a running application that will execute that application I'm developing.…

MadeByVince
- 85
- 8
0
votes
2 answers
Single Sitecore instance with different project solutions
Is it possible to have different website project solutions with different file structures to be deployed on the same Sitecore instance?
If so what changes need to be done in Sitecore setup?

Jeyanth Praveenkumar
- 93
- 9
0
votes
0 answers
I want more explication for single instance in class runtime [JAVA]
in java doc
class Runtime : Every Java application has a single instance of class Runtime
What's single instance in class Runtime

phptraining
- 71
- 6
0
votes
0 answers
Single instance winforms application should store current user details and show this in another instance if try to open
Basically I have C# winforms application with single instance openable on a system using below lines of code.
internal static class Program
{
private static readonly Mutex _mutex = new Mutex(true, "f70bd07d-e882-469c-8bcd-d2a267ab0602");
…

CSharpDev
- 370
- 1
- 7
- 28
0
votes
2 answers
Single Instance Application - Passing commands
I'm using wxPython, and I'm trying to make a single instance application. As far as this goes, there is no problem. My problem is passing commands to the already existing instance.
So lets say that when I double click a file that is associated with…

dpswt
- 189
- 4
- 13
0
votes
1 answer
Autofac: Single-instance object with multi-tenant dependency
Given two class A and B where B depends on A (constructor injected); B is registered as SingleInstance in the base container, and it is built. A is registered in a MultiTenantContainer as SingleInstance, varying on the tenantId.
Question 1:…

Marc L.
- 3,296
- 1
- 32
- 42
0
votes
1 answer
Create a mutex that is only visible within the same session
I have a windows app that (for company policy reasons) I would like to be limited to a single user at a time, but allowing multiple instances to run simultaneously within a single session.
I am using a mutex to do this much like as already asked and…

opeongo
- 384
- 1
- 14
0
votes
0 answers
Disable multiple instances of an app
My native Android app has multiple instances on some phones (Samsung galaxy note 2 – android 5.0 Samsung galaxy note 4 – android xx Xiaomi Redmi 4x – android 7.1.2.). On most other phones it is ok. The app consumes quite a lot of memory and CPU so I…

Petr Kott
- 111
- 7
0
votes
1 answer
Autofac SingleInstance WebApi Performance
We've improved the performance of our API's adding services without state to .SingleInstance() , but I've a question, regarding the demo code attached,
The IBusAppService that we are using on the controller is set to SingleInstance(), but inside…

user1520494
- 1,134
- 2
- 11
- 27
0
votes
1 answer
Drupal multi-site setup with sub-directories
I have a multi-site setup with a single codebase.
Is it possible to have my sites directory set up like this with sub folders:
mysite.com in /home/drupal/sites/mysite.com
othersite1.com in /home/drupal/sites/cluster1/othersite1.com
othersite2.com …

EricP
- 1,459
- 6
- 33
- 55
0
votes
1 answer
java background application on windows
I want to have a main application and a background application each in it's own JVM.
When launching the main it has to check if the background is running, and launch it if not.
I will have multiple mains running but I want only one background…

Happy
- 88
- 7
0
votes
0 answers
Implementing Active/Passive Topology in Java
Need to implement active/passive topology for a Java instance.
The requirement is if active becomes unavailable due to some reason then passive takes over active and active becomes passive.
It's just a java application which just putting data into…

bittu
- 786
- 7
- 14