SingleInstanceHelper
SingleInstanceHelper copied to clipboard
BUG GetRunningProcessHash() is case sensitive
I had a bug that IsApplicationFirstInstance() was returning True because GetRunningProcessHash() was returning different hashes for the same app.
I've debugged the code and found out that one time the Process.GetCurrentProcess().MainModule.FileName ended with .exe and the other time with .EXE.