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 do I set up AWS Route 53 to handle an EC2 single instance domain
I have thoroughly reviewed both the Amazon Web Services documentation and many Stackoverflow posts related to my issue, but have not yet resolved it. My situation:
I have successfully set up:
an EC2 t2.micro instance with elastic IP, running…

dvhirst
- 13
- 5
1
vote
1 answer
Single Instance Application in C++/CLI using Mutex
I am developing a tray icon based application in C++ CLI. I am using Mutex to ensure single instance of my application running at a time. But each time a new instance starts, the current instance's window should go active.
I am sending a message to…

Rohini Sreekanth
- 91
- 8
1
vote
1 answer
Creating a single process in C# to receive multiple Chrome Native Messages
Essentially what I want to do is have an application (a single process) that will stay open all the time and has a thread going listening to Chrome's Native Messaging.
My current understanding is that Chrome launches a separate process for each…

James
- 489
- 1
- 5
- 15
1
vote
2 answers
Only one instance of entire app multiple activities
I have an Android app with 3 activities. I basically want to have one instance that encompasses all three Activities.
So for Activities A, B, and C, I would only want the user to be able to looking at one of those at a time. I do not want multiple…

The Nomad
- 7,155
- 14
- 65
- 100
1
vote
1 answer
SingleInstance and Home button navigation
I have a problem of navigation.
I have three activity A, B and C.
I'm making an application to play music. So I need a persistent activity that run in background for that contain the controll of the mediaplayer.
So, I want the activity C to be…

Timothy T.
- 602
- 4
- 10
1
vote
2 answers
android activity order, want only one instance of current activity, instead of clearing stack
singleTask and singleInstance alone are not the answer.
I have activities in a stack ... n, n+1, n+2
elements in n+2 can open n+1
this creates stack
... n, n+1, n+2, n+1
I want it to create stack
... n, n+2, n+1 , where n+1 is moved to the top of…

CQM
- 42,592
- 75
- 224
- 366
1
vote
1 answer
Data passing in single instance application of C#
I am creating a music player in C#. It's a single instance application made in C# [WinForms]. Currently for making it single instance I am using the following method.
public static Process PriorProcess()
{
Process curr =…

Tejashwi Kalp Taru
- 2,994
- 2
- 20
- 35
1
vote
1 answer
Prevent multiple windows application instances
I have an application which can be used in 2 different ways, depending on whether I pass an argument to the main or not. With the following sample code I can:
- Start multiple instances, each with unique arguments
- Start one instance without…

Sam
- 314
- 3
- 8
1
vote
1 answer
Android Home button disable application exhibition
I'm developing an application for a museum, I need that application to be the only one the visitors can use.
The administrator of the museum has the possibility to quit this application, by a button, which will ask a password.
I already managed to…

user1687267
- 43
- 1
- 5
1
vote
0 answers
How to ensure a single instance of python application on Linux and present the main window when user tries to start it again?
I'm building up a pygtk application on linux. I've managed to use the technique described here
Ensure a single instance of an application in Linux
to ensure that only one instance is running.
But what I want now is that when user try to start the…

Wei Qiu
- 886
- 9
- 16
1
vote
1 answer
Check if other instances of a WPF application are/aren't running
Is it possible for a WPF application to check if any other instances of the application are running?
I'm creating an application that should only have one instance, and will prompt a message that "another instance is running" when the user tries to…

miguelarcilla
- 1,426
- 1
- 20
- 38
1
vote
1 answer
SSL Port NodeJS on Amazon Elatisc BeanStalk Single Instance
Currently, there seems to be no method through BeanStalk's interface or API for allowing SSL connections on a single instance without ELB. How can this be done?

astone26
- 1,222
- 11
- 16
1
vote
1 answer
Single instance app with message passing via cmd line?
I have a C# app that is launched via command line. Usually data is pass through the command line such as add (app -a string). I would like only ONE instance of the app to be opened and if more strings are added via command line i would like the…
user34537
1
vote
1 answer
Show running instance in single instance application
I am building an application with C#.
I managed to turn this into a single instance application by checking if the same process is already running.
Process[] pname = Process.GetProcessesByName("SwapCardDesktop");
if (pname.Length < 2)
…

Immanuel
- 329
- 4
- 14
1
vote
1 answer
JNLP SingleInstanceService Use in Command Line JAR Application
I have a desktop Java application that is run from the command line, which takes in some arguments and performs some actions based on these arguments.
Currently, the application is instantiated periodically, performs its function and then exits.…

Overhed
- 1,289
- 1
- 13
- 41