Code: Select all
Global appmutex=CreateMutex_(0,1,"My_App_Unique_ID")
MessageRequester("RunOnce","Mutex: "+Str(appmutex))
However, it's not supposed to, and it should return 0 in the MessageRequester() when a match for the mutex name is already found. Same if I use a semaphore.
This used to work before to prevent multiple instances of my app (only run once), but not anymore. Using Windows 10 Pro, with both 32-bit and 64-bit of PureBasic 5.71. Any ideas?