Make sure that only one instance of the application is running on the system.
Questions tagged [single-instance]
250 questions
1
vote
1 answer
How to open a file with running instance of netbeans?
When I run the following command it opens a new instance everytime. Is it possible to open file in the running instance of netbeans ?
I'm using NetbeansPortable 8.2
E:/Netbeans/NetBeansPHPPortable.exe --open "c:\\test.php"

nithinTa
- 1,632
- 2
- 16
- 32
1
vote
0 answers
How to properly delete lockfile in a python abstract class?
I have a python3 cron script that consists of a MyCron class and a MyIMAP class.
The MyCron class is an abstract class that makes sure only one instance of the script runs. It creates and destroys a lock file and throws a SingleInstanceExeption…

pixelrebel
- 43
- 5
1
vote
1 answer
Updating Splash labels in a SingleInstanceApplication : WindowsFormsApplicationBase
What is the best way to update splash sceen labels on application startup, to inform the user what's going on ? The problem is that the splash screen is created in an override method, while updating has to be done within the static main method,…

Run CMD
- 2,937
- 3
- 36
- 61
1
vote
1 answer
Making a javascript function that returns itself where it is an instance of itself
In Javascript, is it at all possible to make function Foo() such that both (Foo() == Foo), and (Foo() instanceof Foo)?
This almost works:
function Foo() { Object.setPrototypeOf(Foo,this); return Foo; }
so new Foo() instanceof Foo in this case,…

markt1964
- 2,638
- 2
- 22
- 54
1
vote
1 answer
https SSL AWS ELB Single-Instance
I'm trying to set up an SSL certificate for a project. I have the app hosted in AWS via a "single-instance elastic beanstalk application".
I have seen tutorials on how to do it when you are using a load-balancer, but I am not due to cost constraints…

Chris Allinson
- 1,837
- 2
- 26
- 39
1
vote
1 answer
Autofac SingleInstance() and Xamarin Forms
To start, let me say that I have read several questions here about SingleInstance, but still cannot find a direct answer that helps me. That said, I apologize if I missed anything.
Here's my question:
I am building a Xamarin Forms app for iOS and…

Kerfuffle
- 176
- 11
1
vote
0 answers
Open Geomagic and run a macro with Matlab System Command - open one instance
I want to run a macro (.py code) in a Geomagic software (it is an interactive 3D Design Software) using Matlab system command. I'm calling the system command like this in Matlab:
system(['geomagic12.exe ', path.py]);
It works great and I can import…

Bardiya Akhbari
- 11
- 2
1
vote
2 answers
Custom animation doesnt work on SingleInstance Activity
Im trying to change the default animation of activities transitions, and i stuck with a problem.
I could change the animation of normal activities, but when i change the launchMode to singleInstance, the first time i open the activity, the…

cesarsicas
- 437
- 1
- 5
- 17
1
vote
0 answers
Handling commandline args in a single instance application
I have a tricky question regarding the SingleInstance class on CodeProject.
I want to be able to handle commandline args after my window has loaded and before I started using SingleInstance, I handled all that in my MainWindow's Loaded event. Now, I…
user1618054
1
vote
0 answers
Windows file association and single instance of Java program
I have a Java program that I've made which opens and uses .project files. As long as I open the files from within the program everything works fine. However I want to be able to install the program and register (maybe even maintain) file association…

user3843826
- 5
- 3
1
vote
1 answer
Use running instance to execute commandline in vb.net
I'd like to use a running instance of my application (a single instance application) to run a new commandline...
I've heard about mutexes and IPC mechanisms but I don't know how to use it.
Explanation :
Public Class Form1
Private Sub…

Drarig29
- 1,902
- 1
- 19
- 42
1
vote
3 answers
Passing data to .NET C# WPF applications/DLLs
I have a .NET C# WPF application that I am trying to make into a single-instance application using a Mutex.
This .NET application is called by a C++-based DLL using CreateProcessAsUser() and is given parameters via environment variables.…
bjutus
1
vote
1 answer
Check if app is already running, and if kill it C#
I know that Mutex can be used to determine if another instance of application is running, but can I find from Mutex the PID or name of the other instance? And if not from Mutex, is there another way around to kill other instance if it is running.…

Cryo Erger
- 61
- 1
- 8
1
vote
3 answers
c# WPF Maintain Single Instance of loader
I have a loader.exe with Main() that loads the 'UI' in WPF, the thing is that I want only one instance of the loader.exe, how can I achieve it?
Is there a way a user clicks loader.exe it should check if an existing loader.exe is running and does…

abmv
- 7,042
- 17
- 62
- 100
1
vote
0 answers
Overide HOME button to mimic BACK button or launch Activity faster
I want to override the HOME button to behave exactly like the BACK button in Android. I have looked at similar questions on this site, but they don't work.
I am currently building a lockscreen and have managed to open an activity above the security…

Rex
- 143
- 1
- 3
- 11