Questions tagged [single-instance]

Make sure that only one instance of the application is running on the system.

250 questions
0
votes
5 answers

C# ClickOnce SingleInstance project - how?

I want to create a program that uses ClickOnce for installation and registers a file-association, and always only starts a single instance, so that if a file of that file extension is clicked again it will be sent to the first (already opened)…
Pygmy
  • 675
  • 2
  • 10
  • 13
0
votes
1 answer

Backup application with single instance functionality

Currently working on an application, that help you to take backup of the files in you machine at the server (hosted by the company itself), so that you can recover data after any hdd crash. I have implemented Single Instance feature, across the…
Sumeet
  • 905
  • 1
  • 14
  • 32
0
votes
0 answers

Android tablet multiple instances of application

I am using Android tablet to test my application. I press the home button to put the application to background. Now, if I launch the application from recent apps, it will open the same screen, I was on, and will not restart the application. But,…
Mayur More
  • 951
  • 2
  • 15
  • 37
0
votes
1 answer

server Socket in Clustered server - Java

I am building a application that uses quartz scheduler which is triggered every 30 min. Since we have clustered servers, if the application is deployed it will do the job twice , which we don't want to happen. Therefore we decided to use socket…
nepJava
  • 81
  • 1
  • 1
  • 4
0
votes
1 answer

What is "make a single instance application" in VB.NET?

Does it mean that the program can only be opened once? Will it mess with the code that I have already written? What does it exactly mean?
babin101
  • 75
  • 1
  • 1
  • 7
0
votes
1 answer

Widget configure activity does not create the widget

I'm using a SherlockFragmentActivity as a widget configure activity:
Ilya Kogan
  • 21,995
  • 15
  • 85
  • 141
0
votes
2 answers

Could you please explain why this Mutex helping allow to run only 1 instance of application at a time doesn't work (C#)?

Here is the article I read http://kristofverbiest.blogspot.com/2008/11/creating-single-instance-application.html, followed the steps by the article, I have the following code, I'm almost sure it can't work and it can't: static class Program { …
King King
  • 61,710
  • 16
  • 105
  • 130
0
votes
1 answer

Issue with static variables in Java

I need an explanation for the output of the below code: class Stats { static int a = 10; int b = 20; void printMe() { System.out.println(a+b); } } public class Static { public static void main(String args[]) { …
user2324514
0
votes
2 answers

True singleton for whole computer?

How to create a real singleton for a whole computer in Java? I have a console app written in Java. if application is executed for a second time I want it to know that the main application is already running (and executing jobs). The second execution…
IAdapter
  • 62,595
  • 73
  • 179
  • 242
0
votes
2 answers

Python code: to initialise only one instance of a class

Sorry novice beginner programmers question about having only one instance of a class run at one time; and now struggling to find right way to structure the code. I've researched but struggling to find the right approach, but lots of argument as to…
0
votes
1 answer

WPF Singleton UserControl?

Is there a way to make UserControl a singleton? ex: I have a MainWindow and 2 UserControls {UserControl 'A' and UserControl 'B'} MainWindow have 2 Buttons {Button 'UCA' and Button 'UCB'} UserControl 'A' have a TextBox. At startup I have UserControl…
Reyn
  • 269
  • 5
  • 17
0
votes
1 answer

How can I make an instance of UINavigationController?

In my first iphone app I have a NavigationController. How can I define in AppDelegate an instance of UINavigationController and set that for my default navigation controller? in .h: @interface DefaultTableAppDelegate : NSObject…
0
votes
2 answers

How do I make one instance in Python that I can access from different modules?

I'm writing a web application that connects to a database. I'm currently using a variable in a module that I import from other modules, but this feels nasty. # server.py from hexapoda.application import application if __name__ == '__main__': from…
user1203803
0
votes
2 answers

Single instance service

I have a service that I would like it to become single instance, because when i click restart on services.msc, the new instance of the service starts when the old instance still haven't finished (because it has to perform some actions). The code…
David Espart
  • 11,520
  • 7
  • 36
  • 50
-1
votes
1 answer

How to update a WinForms control of a running application when another instance of this executable program is launched?

I made single instance app, but my problem is, I don't know how to get the first opened FormMain instance and update the form TextBox! Could you help me? static void Main(string[] args) { bool result; Mutex mutex = new…
akicsike
  • 371
  • 2
  • 8
1 2 3
16
17