Make sure that only one instance of the application is running on the system.
Questions tagged [single-instance]
250 questions
0
votes
2 answers
How to get the topmost window if it is modal and inactive
I want to prevent users to run my application multiple times on the same machine so I used a solution from this thread: What is the correct way to create a single-instance application?
This works OK, but I have a problem displaying my application…

sventevit
- 4,766
- 10
- 57
- 89
0
votes
0 answers
Single java application instance per network
We have deployed a java application which will be run by a job scheduler.
This application might be run on many different server machines of intranet. Now we had a problem that there might be more than one instance of this application running…

Wuaner
- 929
- 2
- 14
- 31
0
votes
0 answers
Prevent multiple instances of an external program
I have an external program (XYZ) which I have used to build a model of a certain physical process and save it to a file to deliver to a client. The model file contains intellectual property that belongs to my company.
The program gives me an…

Quark
- 49
- 1
- 14
0
votes
1 answer
WCF: How to design WcfServiceLibrary separately from main application
I am somewhat new to WCF and I am running into a very simple design issue which I assume has well-established answers. I created a (single-instance) main application that does all the 'business logic': connects to a database and a third-party API,…

phaedo
- 123
- 1
- 6
0
votes
1 answer
How to close all of the activities of running app and Re-launch a fresh app on click
I'm having the app with multiple screen
My App Launch from splash(Launcher)->Home Screen->Child Screen.
When User Tap on URL app directly jumps to Child Screen(Application need).
But when user tap on URL a new instance of application launched which…

Akshay
- 6,029
- 7
- 40
- 59
0
votes
1 answer
Application having single instance and multiple instance behaviour
I have created a single instance application using VisualBasic.dll but there are some situations where I need to create multiple instances.
I needed single instance behavior to handle the context menu behavior where each windows context menu command…

Krv Perera
- 119
- 2
- 15
0
votes
1 answer
Elastic Beanstalk single instance https example with json
I have been looking for an example with JSON format not YAML to be able to configure the https in the single instance of the Elastic Beanstalk server.
The file inside the .ebextensions/singlehttps.config
The single instance is so important for low…

anestis
- 931
- 3
- 9
- 24
0
votes
1 answer
Specific instance/Non Singleton
How to instantiate java class with parameters and use the same instance through out the application?
What i want to do is when a tibco esb requests a web service call to my application,i will capture user information(user name) in one pojo class so…

Vikas Chowdhury
- 737
- 8
- 15
0
votes
2 answers
Single program instance
I need to make a program, which can be executed in single instance. I tried to create a temporary file and delete it before exit program.
public static boolean isLocked() {
File f = new File("lock.txt");
return f.exists();
}
public static…

mambetizm
- 3
- 1
0
votes
2 answers
IExplorerBrowser - Browse in place without starting default application
I am developing windows file manager application, essentialy it wraps IExplorerBrowser giving me exact controls as you would have in your Windows explorer.
I've implemented single instance using Mutex and IPC for passing arguments.
So now I wanted…

formatc
- 4,261
- 7
- 43
- 81
0
votes
1 answer
Activity Launch Mode Single Instance Usage
I have two Activities. WebViewActivity and CameraPreviewActivity
I should be able to switch between the two activities on click of a button. Once I have started CameraPreviewActivity, further loads of the activity should not take much time to…

arjoan
- 1,849
- 2
- 20
- 39
0
votes
1 answer
How to send arguments to a running Process in C#?
I've Created a Music Player using Visual Studio 2012 Windows Form C#. now I want the user to be able to play songs in windows explorer such as other players(Windows Media Player,Winamp,etc.) with my player.
I already found the way to File…

ACE
- 379
- 3
- 12
0
votes
2 answers
hibernate returning same instance for same foreign keys
I have two tables -
PersonType Person
---------------------- ------------------
ID type pid pid name
1 Teacher 1 1 Smith
2 Driver 1 2 David
3 Waiter 2
pid is foreign…

user1707282
- 3
- 1
0
votes
4 answers
Force multi-threaded VB.NET class to display results on a single form
I have a windows form application that uses a Shared class to house all of the common objects for the application. The settings class has a collection of objects that do things periodically, and then there's something of interest, they need to alert…

SqlRyan
- 33,116
- 33
- 114
- 199
0
votes
1 answer
VB.Net WPF Single instance application, with new instance opening window of first
I want to be able to write a WPF application that only allows one instance of it, but if the user opens another instance, the first instance opens a window. So, I need
Single instance only WPF application
Inter-process communication between new…

lizclipse
- 1
- 2