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

Reply via email to