Re: [fpc-pascal] $B or $BOOLEVAL : Complete boolean evaluation

2005-09-23 Thread Jonas Maebe
On 22 Sep 2005, at 12:24, Carsten Bager wrote: It says in the manual that: $B or $BOOLEVAL : Complete boolean evaluation This switch is understood by the Free Pascal compiler, but is ignored. The compiler always uses shortcut evaluation. This is outdated. 2.0 includes supports complete boo

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
Hi Alexey, thank you for your answer, I'm thinking about some portable solution for win32 and linux? How can I also do it in linux? tia! best regards > -Mensaje original- > De: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] En nombre de > Alexey Pavluchenko > Enviado el: viernes, 23 de

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