Prevent Multiple Instance of the Application

The Mutex needs to exist for the life of the program. You are closing the Mutex at the end of the isOneInstance function.

1 Like