[fpc-pascal] #26 as EOF marker?

2009-09-02 Thread leledumbo
Does FPC use #26 as EOF marker? I use a loop that calls Read until it meets EOF, and right before the loop ends, #26 is met. This happens at least on Windows (other platforms untested). code: // Please redirect output from a file var c: Char; begin while not EOF do Read(c); end. -- View

Re: [fpc-pascal] #26 as EOF marker?

2009-09-02 Thread Michael Van Canneyt
The behaviour for each platform is described by the CtrlZMarksEOF Boolean constant. It is documented :-) Michael. Wed, 2 Sep 2009, leledumbo wrote: Does FPC use #26 as EOF marker? I use a loop that calls Read until it meets EOF, and right before the loop ends, #26 is met. This happens at

Re: [fpc-pascal] #26 as EOF marker?

2009-09-02 Thread Jonas Maebe
On 02 Sep 2009, at 10:44, leledumbo wrote: Does FPC use #26 as EOF marker? Only on platforms that traditionally use #26 as EOF marker. Afaik, these are Dos, Windows and OS/2. I use a loop that calls Read until it meets EOF, and right before the loop ends, #26 is met. This happens at

RE: [fpc-pascal] #26 as EOF marker?

2009-09-02 Thread Cox, Stuart TRAN:EX
And the grandfather of the whole line, CP/M. Stu Cox Project Management Technician Southern Interior Region Ministry of Transportation and Infrastructure 342-447 Columbia St., Kamloops, BC V2C 2T3 p: 250-828-4320 f: 250-828-4229 stuart@gov.bc.ca -Original Message- From:

RE: [fpc-pascal] #26 as EOF marker?

2009-09-02 Thread Tomas Hajny
On Wed, September 2, 2009 17:20, Cox, Stuart TRAN:EX wrote: And the grandfather of the whole line, CP/M. Well, if we had CP/M target in FPC, sure... Tomas -Original Message- From: fpc-pascal-boun...@lists.freepascal.org [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of

[fpc-pascal] Profiller for Mac OS X

2009-09-02 Thread Felipe Monteiro de Carvalho
Hello, Is anyone using a profiler in Mac OS X? I am trying to detect if there are memory leaks. gprof doesn't seam to work and valgrind doesn't seams usable from their readme, so I tryed Sampler from the Developers dir, but the application runs and after it nothing appears in the tables.

Re: [fpc-pascal] Profiller for Mac OS X

2009-09-02 Thread Milipili
On Sep 2, 2009, at 11:20 PM, Felipe Monteiro de Carvalho wrote: Hello, Is anyone using a profiler in Mac OS X? I am trying to detect if there are memory leaks. gprof doesn't seam to work and valgrind doesn't seams usable from their readme, so I tryed Sampler from the Developers dir, but the

Re: [fpc-pascal] Profiller for Mac OS X

2009-09-02 Thread Felipe Monteiro de Carvalho
On Wed, Sep 2, 2009 at 6:23 PM, Milipilimilip...@shikami.org wrote: You should use Instruments from the Developper tools. /Developper/Applications/Instruments In my 10.4 there isn't this directory. -- Felipe Monteiro de Carvalho ___ fpc-pascal

Re: [fpc-pascal] Profiller for Mac OS X

2009-09-02 Thread Felipe Monteiro de Carvalho
Ah, but I found ObjectAlloc, which seams to work, thanks a lot =) -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Profiller for Mac OS X

2009-09-02 Thread Milipili
On Sep 2, 2009, at 11:25 PM, Felipe Monteiro de Carvalho wrote: On Wed, Sep 2, 2009 at 6:23 PM, Milipilimilip...@shikami.org wrote: You should use Instruments from the Developper tools. /Developper/Applications/Instruments In my 10.4 there isn't this directory. Available since 10.5 if I

Re: [fpc-pascal] Profiller for Mac OS X

2009-09-02 Thread Jonas Maebe
On 02 Sep 2009, at 23:20, Felipe Monteiro de Carvalho wrote: Is anyone using a profiler in Mac OS X? I am trying to detect if there are memory leaks. Profilers don't detect memory leaks. Profilers detect which code is executed (a lot) by the program. gprof doesn't seam to work gprof

Re: [fpc-pascal] INDY 10 for FPC

2009-09-02 Thread ABorka
Well, if one checks out the latest Indy SVN sources from svn://svn.atozed.com/indy/indy10/trunk the latest revision is 3778 (last update was in April 2009) there is no way to compile it for FPC/Lazarus. The FPC related README file is the same as for the 2007 10.2.0.3 FPC only version and the