일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- logging
- Visual Studio
- 코딩테스트
- C#
- Coding
- Process
- WPF
- windows10
- Github
- coding-test
- Microsoft
- convert
- chashtag
- windows
- git
- tls
- File
- csharp
- .net
- nullable
- ListView
- commit
- string
- log
- mysql
- programmers
- Binding
- algorithm
- IValueConverter
- dotNET
Archives
- Today
- Total
목록중복실행방지 (1)
CHashtag

// App.xaml.cs // 프로그램 시작, 종료 지점에 해당 코드를 삽입하여도 무방합니다. const string MUTEX_NAME = "SOME_UNIQUE_MUTEX_NAME"; Mutex mutex = null; App() { bool isNew; try { mutex = new Mutex(false, MUTEX_NAME, out isNew); if (!isNew) { Application.Current.Shutdown(); mutex = null; return; } } catch (Exception ex) { Application.Current.Shutdown(); } } /// /// 프로그램이 종료되기 전에 Mutex를 해제해주어야 한다. /// /// /// private void A..
C#
2021. 6. 30. 16:03