Make sure that only one instance of the application is running on the system.
Questions tagged [single-instance]
250 questions
1
vote
0 answers
java SingleInstanceService doesn't always work
I have a javafx application started from web start via a link on a webpage. The SingleInstanceService works fine when I have a running instance and try to open another one. But when no instances are running, and I either double click a link on my…

Ole A Jørgensen
- 63
- 7
1
vote
1 answer
Creating a WCF service object with InstanceContext object
I have a WCF service with a single instance. I have consumed it in silverlight and windows forms also. It's working fine in the silverlight application but in windows it does not create a service object. It tells me 3 parameters in service method,…

Tarun
- 63
- 3
1
vote
1 answer
Android LaunchMode Does Not Work
I started an temp activity from notifiation, just show some text messages.Whatever I set launchMode=singleInstance or noHistory=true, The temp activity showed last time will show again when enter from "Recent open". I want temp activity to be shown…

thecr0w
- 2,148
- 4
- 33
- 59
1
vote
0 answers
WCF: How to (json) map a DataMember that is sometimes an array, sometimes a single object?
When writing up the title to this question, I happened upon this answer. However I'm looking for a way to do this in a WCF client. Is there a way to plug JSON.Net into a WCF client?
Yahoo! just changed its PlaceFinder service a couple of days ago.…

danludwig
- 46,965
- 25
- 159
- 237
1
vote
1 answer
Using EventWaitHandle to ensure a single instance across multiple users
Collaborators have built a prototype using Processing that connects to a Sparkfun RFID reader, I think using a serial connection over USB. We've deployed the prototype into a number of trialists' homes and one common usage scenario I foolishly…

dumbledad
- 16,305
- 23
- 120
- 273
1
vote
1 answer
Prevent SingleTask app from closing when returning to the calling app
I have two apps, which I will refer to as app A and app B. App B is a single task app and normally, if you start this app from the Home screen and use the Back button, you will not be allowed to return to the Home screen. Now suppose app A needs to…

Johann
- 27,536
- 39
- 165
- 279
1
vote
5 answers
Run one instance of java application
Possible Duplicate:
How to implement a single instance Java application?
is there a way to run only one instance of Java application so only I have one process? . is it possible to do it in java?

Feras Odeh
- 9,136
- 20
- 77
- 121
1
vote
1 answer
'android:launchMode="singleInstance"' does not allow activity for results update
When setting to a single instance, the Activity does not allow another Activity to update it using the Activity for results method. What is the flag I should set so that I do not have to remove the initial launch mode as single instance?
Note: I am…

Abhinav Saxena
- 1,990
- 2
- 24
- 55
0
votes
2 answers
Alternative to Singleton-Factory
I'm writing a wrapper around a class library that I have no control over. In this library is a class (let's call it Target) that I want to ensure is only instantiated once, but it is not, in itself, a singleton. I thought of using the…

Andrew Cooper
- 32,176
- 5
- 81
- 116
0
votes
5 answers
Detect if CountdownTimer is running or not
I created a countdowntimer and it starts now if a boolean is true, what would be better if I detect if the timer is running. Is there a way to do that?
I created the following class with the following countdowntimer:
public class GameActivity
{
…

Diego
- 4,011
- 10
- 50
- 76
0
votes
1 answer
Mutual Exclusion not Working with the .NET Mutex Class
How can I achieve mutual exclusion using two named mutexes? The following code should work but it doesn't:
[TestMethod]
public void xdfgndygfn()
{
using (var mutex1 = new Mutex(false, "1234"))
using (var mutex2 = new…

usr
- 168,620
- 35
- 240
- 369
0
votes
1 answer
as3 unique login session
I've got a login working flash >> PHP >> MYSQL and capable of doing everything I need.
However, I've been presented with an issue that a person could be logged in under the same account and start mucking around with things. This creates issues with…

jc.021286
- 220
- 1
- 4
- 15
0
votes
1 answer
How to fix the Single Instance for my Wpf .NET 6 application?
I'm trying to bring up the main window when trying to reopen the app, it works when it's in a background or minimized state but it doesn't work when the window is in a hidden state!
using System;
using System.Diagnostics;
using…

Call me igris
- 1
- 2
0
votes
0 answers
When launch mode is set to single instance in manifest, there is an issue where the intent may be missing from another application in android
I'm currently working on implementing a feature that handles video links received through the YouTube sharing functionality in my application. However, I encountered an issue where if this handling is done in the background while the application is…

이준영
- 1
0
votes
0 answers
How to prevent Visual Studio Community 2022 from opening each file in a separate instance?
I'm using Windows 11 Pro 22H2 OS build: 22621.1485 and Visual Studio Community 2022.
Imagine please, I have 3 PHP files in my workplace folder. If I double click on each PHP file on Windows Explorer (File Manager) Visual Studio Community 2022 opens…

berksoy
- 23
- 3