RE: [fpc-pascal] single application instance

2005-10-05 Thread Jose Pascual
e de 2005 18:53 > Para: FPC-Pascal users discussions > Asunto: Re: [fpc-pascal] single application instance > > > > Semaphores <> Mutexes. Semaphores do not always have names > and are not > > system-wide. > > In my experience, its the other way round. S

Re: [fpc-pascal] single application instance

2005-09-23 Thread Matt Emson
> Semaphores <> Mutexes. Semaphores do not always have names and are not > system-wide. In my experience, its the other way round. Semaphores are system wide/cross process. Admittedly, they are not always named though. ___ fpc-pascal maillist - fpc-pa

Re: [fpc-pascal] single application instance

2005-09-23 Thread Marco van de Voort
> > How can I also do it in linux? > > Use semaphores. There is a semaphore implementation for LINUX, Windows, BeOS > and probably most other Unices. Certainly, any platform that conforms to > POSIX and/or PThreads will have a semaphore implementation. > > The mechanics will be different - the id

Re: [fpc-pascal] single application instance

2005-09-23 Thread Micha Nelissen
On Fri, 23 Sep 2005 17:16:36 +0100 "Matt Emson" <[EMAIL PROTECTED]> wrote: > > How can I also do it in linux? > > Use semaphores. There is a semaphore implementation for LINUX, Windows, BeOS Semaphores <> Mutexes. Semaphores do not always have names and are not system-wide. Micha __

Re: [fpc-pascal] single application instance

2005-09-23 Thread Matt Emson
> How can I also do it in linux? Use semaphores. There is a semaphore implementation for LINUX, Windows, BeOS and probably most other Unices. Certainly, any platform that conforms to POSIX and/or PThreads will have a semaphore implementation. The mechanics will be different - the idea will be uni

RE: [fpc-pascal] single application instance

2005-09-23 Thread Jose Pascual
iado el: viernes, 23 de septiembre de 2005 10:35 > Para: FPC-Pascal users discussions > Asunto: Re: [fpc-pascal] single application instance > > > Hello Jose, > > Thursday, September 22, 2005, 1:20:48 PM, you wrote: > > JP> How can avoid to run my program more than

Re: [fpc-pascal] single application instance

2005-09-23 Thread Alexey Pavluchenko
Hello Jose, Thursday, September 22, 2005, 1:20:48 PM, you wrote: JP> How can avoid to run my program more than once? I suppose you wanted to ask "how can I allow only one instance of my program running under Win32". Correct me if I'm wrong. If I'm right, then you may do it like this: check for n