Re: [fpc-pascal] Cross-platform single instance

2007-10-02 Thread Felipe Monteiro de Carvalho
cool, looks pretty good =) Nevertheless, it would still be useful to have a cross-platform interface for semaphores. thanks, -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/

Re: [fpc-pascal] Cross-platform single instance

2007-10-02 Thread Luiz Americo Pereira Camara
Vincent Snijders wrote: Felipe Monteiro de Carvalho schreef: Hello, I was looking into a way to detect if an instance of my application is running. Is there a cross-platform solution on rtl or fcl? It seams that semaphores would be a good solution. I took a look at pthreads and PSemaphore but

Re: [fpc-pascal] Cross-platform single instance

2007-10-02 Thread Vincent Snijders
Felipe Monteiro de Carvalho schreef: Hello, I was looking into a way to detect if an instance of my application is running. Is there a cross-platform solution on rtl or fcl? It seams that semaphores would be a good solution. I took a look at pthreads and PSemaphore but that is only an alias for

[fpc-pascal] Cross-platform single instance

2007-10-02 Thread Felipe Monteiro de Carvalho
Hello, I was looking into a way to detect if an instance of my application is running. Is there a cross-platform solution on rtl or fcl? It seams that semaphores would be a good solution. I took a look at pthreads and PSemaphore but that is only an alias for unix specific semaphores. If there is

Re: [fpc-pascal] Turbo Pascal Mode Bug?

2007-10-02 Thread Daniƫl Mantione
Op Tue, 2 Oct 2007, schreef Felipe Monteiro de Carvalho: > As per the docs: > > http://www.freepascal.org/docs-html/prog/progsu82.html#x90-91.2.17 > > There is a GNU pascal mode. AFAIK Gnu Pascal follows ISO Pascal, so it > would be possible to use Free Pascal with this mode, or GNU Pascal

Re: [fpc-pascal] Turbo Pascal Mode Bug?

2007-10-02 Thread Felipe Monteiro de Carvalho
As per the docs: http://www.freepascal.org/docs-html/prog/progsu82.html#x90-91.2.17 There is a GNU pascal mode. AFAIK Gnu Pascal follows ISO Pascal, so it would be possible to use Free Pascal with this mode, or GNU Pascal, to have a compiler that complies with ISO Pascal. -- Felipe Monteiro

[fpc-pascal] Dynamic memory in a DLL

2007-10-02 Thread gmjimen
Hello everybody. I'm not sure if this is a FPC issue but I need to ask. Last year I coded an small and simple virtual machine in C. Yesterday I put that VM in a DLL file and I wrote a Pascal wrapper. It worked nice but suddenly the program starts to return EAccesViolation exceptions just when it

Re: [fpc-pascal] gprof

2007-10-02 Thread Jonas Maebe
On 02 Oct 2007, at 11:12, Mattias Gaertner wrote: What are the plans for this feature? What else can be used as profiler for fpc? On which OS? Linux. Callgrind/Cachegrind is probably your best bet (and more detailed than gprof). Jonas ___ f

Re: [fpc-pascal] gprof

2007-10-02 Thread Mattias Gaertner
On Tue, 2 Oct 2007 10:57:45 +0200 Jonas Maebe <[EMAIL PROTECTED]> wrote: > > On 02 Oct 2007, at 00:43, Mattias Gaertner wrote: > > > It seems the gprof option -pg is still there, but it does not work. > > On which OS? It's known not to work on Linux currently (for the same > reason that share

Re: [fpc-pascal] gprof

2007-10-02 Thread Jonas Maebe
On 02 Oct 2007, at 00:43, Mattias Gaertner wrote: It seems the gprof option -pg is still there, but it does not work. On which OS? It's known not to work on Linux currently (for the same reason that shared library initialization doesn't work). What are the plans for this feature? What el

[fpc-pascal] FreePascal mentioned in Yahtzee book

2007-10-02 Thread Tom Verhoeff
Last February, I used my Yahtzee software to do some calculations for the book "Yahtzee Scratch & Play" (ISBN 1-4027-5091-9) This software is written in FreePascal, and I managed to get this mentioned in the book's Introduction