MuteX doesn’t work.

 bool result; var mutex = new System.Threading.Mutex(true, "PosApp.UI.Windows", out result); if (!result) { if (SecurityData.IsMasterDataDownloaded) { SecurityData.IsMasterDataDownloaded = false; } else { MessageBox.Show("Another instance is already running."); return; } } 

Can you please tell where the issue is? When i close the app and reopen it i get the “Another instance is already running.”

submitted by /u/YouWillNeverSeeMe
[link] [comments]

Leave a Reply