that works with getlasterror = error_already_exists when try to create a second mutex. thanks!
Am Sonntag, 15. März 2009 21:00 schrieb dmitry boyarintsev: > it's better to use named mutexes (supported on all Windows versions) > to find out if there's another instance of the app running. > > do the following on application start: > - create a named mutex (constant name) > - try to lock the mutex (0 time waiting), if failed then there's > another instance already running. > > Thanks, > Dmitry > _______________________________________________ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal