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