일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Microsoft
- mysql
- File
- IValueConverter
- programmers
- windows
- commit
- .net
- Process
- logging
- Binding
- dotNET
- tls
- convert
- C#
- string
- Github
- chashtag
- 코딩테스트
- WPF
- Coding
- nullable
- windows10
- csharp
- git
- algorithm
- ListView
- Visual Studio
- log
- coding-test
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