PDA

View Full Version : I need run only one copy of program.



ivi2501
27th January 2009, 22:21
I almost finish simple adult block system. In database 120 000 sites with adult content.
I need create function for check if application already running and exit if running.
Problem for me because i develop in windows i know linux and in linux this simple.
I not want use winapi for check if process running. If QT have classes for this please help.

faldzip
27th January 2009, 23:18
Just look at this topic:
http://www.qtcentre.org/forum/f-qt-programming-2/t-how-to-not-open-the-application-second-time-if-it-is-already-running-17171.html

or just look at QtCentre wiki:
http://wiki.qtcentre.org/index.php?title=SingleApplication

ivi2501
28th January 2009, 09:54
Thanks.

Shared Memmory best choice :).