Hey guys,
Has anyone coded a function to know if a given binary is currently running or not ?
e.g:
Qt Code:
if (isRunning("myExe.exe") == false) { // ... }To copy to clipboard, switch view to plain text mode
Thanks.
Hey guys,
Has anyone coded a function to know if a given binary is currently running or not ?
e.g:
Qt Code:
if (isRunning("myExe.exe") == false) { // ... }To copy to clipboard, switch view to plain text mode
Thanks.
You can use shared memory (QSharedMemory) or a system semaphore (QSystemSemaphore) for that. If you're interested in assuring that there is only one instance of the application running, search for QtSingleApplication or look into our wiki.
bunjee (1st July 2009)
Bookmarks