Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unnecessary use of settings for checkDoubleRun() #19

Open
s0m3one opened this issue Dec 19, 2018 · 0 comments
Open

Unnecessary use of settings for checkDoubleRun() #19

s0m3one opened this issue Dec 19, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@s0m3one
Copy link

s0m3one commented Dec 19, 2018

To prevent users to double-run the program you can use much more efficient ways like mutex or

import System.Diagnostics and then use something like this:

if (Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName).Length > 1)
{
logTextToFile("> Doppelte Ausführung! Bitte 10 Sekunden warten.");
Application.Exit();
}

@ADarkHero ADarkHero self-assigned this Dec 20, 2018
@ADarkHero ADarkHero added the enhancement New feature or request label Dec 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants