single-instance Questions

8

Solved

I have to restrict my .net 4 WPF application so that it can be run only once per machine. Note that I said per machine, not per session. I implemented single instance applications using a simple mu...
Deville asked 19/11, 2010 at 7:50

5

Solved

Whenever we have to use shared preferences we have to create an instance of it. In flutter creating an instance of shared preference is asynchronous; final prefs = await SharedPreferences.getInstan...
Allegraallegretto asked 20/7, 2022 at 5:22

15

Solved

What would be your suggestion in order to create a single instance application, so that only one process is allowed to run at a time? File lock, mutex or what?
Rebate asked 17/3, 2011 at 12:49

13

Solved

Is there a way to let gVim only run a single instance, so that when a new file is opened with it it's automatically opened in a new tab in the currently running instance? I know you can do that by...
Calamanco asked 1/6, 2009 at 20:3

6

Solved

I have an Activity which is basically my main activity and its launch mode is single instance. But because of singleInstance, the onActivityResult() callback does not fire. And if I change the laun...
Danie asked 25/2, 2011 at 14:42

4

Solved

I am building a web app with Django. I would like to be able to store final user settings for my app. For now I am using a model Settings that contains all what I need for the app. It seems ok but...
Equanimous asked 3/2, 2020 at 22:6

6

Solved

I'm working an application of which only one instance must exist at any given time. There are several possibilities to accomplish this: Check running processes for one matching our EXE's name (un...
Bairam asked 22/12, 2009 at 16:2

17

Solved

Sometime I see many application such as msn, windows media player etc that are single instance applications (when user executes while application is running a new application instance will not crea...
Archfiend asked 7/10, 2008 at 3:54

3

Solved

I just implemented this code that is guarding the Single Instance of the Application, in order to not run the application twice. Now I am wondering how I can show the original Application process ...
Rooker asked 27/5, 2018 at 13:21

3

Solved

I've seen all the other questions regarding creating a single instance app using WPF and I've chosen to use the Microsoft's approach as described here: https://codereview.stackexchange.com/a/25667 ...
Anna asked 19/11, 2013 at 20:55

11

Solved

I'm using this code to prevent a second instance of my program from running at the same time, is it safe? Mutex appSingleton = new System.Threading.Mutex(false, "MyAppSingleInstnceMutx"); if (appS...
Deration asked 14/3, 2009 at 18:53

1

Recently I decided to migrate one of my WPF Windows desktop apps written in C# and targeting .NET Framework 4.5 to the newest .NET Core 3.1. All was good until I had to add support for single insta...
Lavoisier asked 12/1, 2020 at 17:4

3

I'm starting the UI from within Maya. If the UI hasn't been closed, running the UI again will completely freeze Maya (with the error "Event Loop is already running") Manually closing the UI before...
Greatnephew asked 9/1, 2012 at 9:21

1

Solved

I've been reading about instances and tenants and in the Saas architecture. My questions are as follows (please correct anything that you notice I've gotten wrong with any of the following terms): ...

1

Is there an elegant way to ensure that only one instance of a nodejs app is running? I tried to use pidlock npm, however, it seems that it works only on *nix systems. Is it possible by using mutex?...
Lynettelynn asked 1/11, 2015 at 8:10

2

So far I have seen two examples of Singletons. Normal Singletons, public class Singleton { private static Singleton instance; static { instance = new Singleton(); } private Singleton() { ...
Lamp asked 27/1, 2018 at 0:2

5

Solved

I have a Kotlin Code just like the below, SingleKotlin.instance can be called by the other Kotlin files class SingleKotlin private constructor(){ companion object { val instance by lazy { Singl...
Stanford asked 25/1, 2017 at 19:47

1

Possible Duplicate Deep linking and multiple app instances. I have implemented Deep Linking in my app. I have Splash activity that is launcher and MainActivity that handles the Intent as defined in...

12

Solved

I'm working on a GUI application in WxPython, and I am not sure how I can ensure that only one copy of my application is running at any given time on the machine. Due to the nature of the applicati...
Longinus asked 21/10, 2008 at 1:58

11

Solved

I want to check when the user double click on applictaion icon that no another instance of this application is already running. I read about My.Application but i still don't know what to do.
Procedure asked 24/12, 2008 at 12:19

3

Solved

I have a program that works when, a file is opened with it using the right click menu in explorer. But if I select multiple files and then right click and open with my program then it opens multipl...
Ptyalin asked 24/4, 2010 at 9:6

2

I am facing issue in opening Email in MYApp when I made its launch mode to "singleInstance". I have attached sample Android project which reads file name from email attachment and displays it on s...
Isbell asked 25/2, 2012 at 6:29

2

Solved

I'm sorry about my title may be it make you confusing (it's just I don't know what words should I use). My problem is I don't want to allow user to open my application multiple time. Please help. T...
When asked 24/4, 2013 at 15:45

2

Solved

I want to switch from CreatMutex to boost::interprocess::named_mutex to limit my application to a single instance. Both methods works when the application runs and ends just fine. However, the lock...
Rooker asked 4/12, 2013 at 15:50

2

Solved

I encountered an interesting issue, where an Activity is created multiple times, even it is defined as a singleTask or a singelInstance Activity in the manifest. Here is how this can be reproduced....
Bozuwa asked 20/2, 2013 at 18:19

© 2022 - 2024 — McMap. All rights reserved.