[fpc-pascal] LINKLIB on Cygwin

2005-12-19 Thread Alan Mead
Jeff Pohlmeyer gave me a short program demonstrating the use of the readline and history libraries, the program begins: program histdemo; {$LINKLIB ncurses} {$LINKLIB readline} {$LINKLIB history} {$LINKLIB c} It works great on Linux but I haven't been able to figure out how to get it to work un

Re: [fpc-pascal] RE: command line editing, history, etc.

2005-12-19 Thread Alan Mead
Jeff, This works great on Linux... haven't tried it on Cygwin but I don't see why not... Thanks! -Alan - Original Message From: Jeff Pohlmeyer <[EMAIL PROTECTED]> To: fpc-pascal@lists.freepascal.org Cc: [EMAIL PROTECTED] Sent: Saturday, December 17, 2005 15:17:19 Subject: [fpc-pas

[fpc-pascal] command line editing, history, etc.

2005-12-17 Thread Alan Mead
I have a command line utility that would really benefit from command line editing... is there a simple way to add this kind of readline-like behavior to a FreePascal program? I would appreciate the functionality on Linux but I might also use the program on Windows. -Alan ___

Re: [fpc-pascal] for..in loops?

2005-11-19 Thread Alan Mead
D2006 marketing materials (AFAICT) suggest that this isn't just a .NET thing. -Alan --- Marco van de Voort <[EMAIL PROTECTED]> wrote: > > On Fri, 18 Nov 2005 13:18:40 -0800 (PST) > > Alan Mead <[EMAIL PROTECTED]> wrote: > > > > > fpc 2.0.0 doesn't c

[fpc-pascal] for..in loops?

2005-11-18 Thread Alan Mead
I use Perl a lot so the new for..in loops in Delphi caught my eye: program ForIn; type TStringArray = array of String; procedure Demo1(const List: TStringArray); var S: String; begin for S in List do writeln(S); end; var sa: TStringArray; begin Demo1(sa); end. fpc 2.0.0 doesn't compile this..

Re: [fpc-pascal] Learning new things in an imperfect world

2005-11-01 Thread Alan Mead
David Chandler <[EMAIL PROTECTED]> wrote: > I am having trouble getting a standard top-of-the-page menu system > to > work properly in Lazarus (Version 0.9.10 beta downloaded a few > weeks ago). I think you'll get more help with this on the Lazarus mailing list. I think when you get results tha

Re: [fpc-pascal] Cross-platform lightweight/fpc SQLite bindings?

2005-10-25 Thread Alan Mead
Luiz, thanks! A couple questions below... Luiz Américo <[EMAIL PROTECTED]> wrote: > Alan Mead wrote: > > I just want some fairly light-weight sqlite3 bindings that work > on > > Linux and Windows. The code on the SQLite website works great on > > Windows but

[fpc-pascal] Cross-platform lightweight/fpc SQLite bindings?

2005-10-25 Thread Alan Mead
I just want some fairly light-weight sqlite3 bindings that work on Linux and Windows. The code on the SQLite website works great on Windows but fails to compile on Linux. (I don't know Windows API calls... it looks like he's searching for a function name in the DLL.) I've tried a few other solu

[fpc-pascal] Anyone have Windows CGI working?

2005-10-24 Thread Alan Mead
I have never had trouble on Linux but on Windows I have never gotten the FCL example program testcgi.pp to work, not even from the command line. It dies when trying to initialize the CGI application (see below). Has anyone been successful in writing CGI applications for Windows? What's the "tric

Re: [fpc-pascal] FPCUnit article/tutorial online.

2005-10-11 Thread Alan Mead
Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > Hello, > > The Editor of Toolbox Magazine has allowed me to put an article > about FPCUnit online. > [...] I found the article and the discussion on this list very helpful. Thanks for writing it and making it available. These are probably stupid

Re: [fpc-pascal] Re: What is the portable approach?

2005-10-04 Thread Alan Mead
o-associative "trick" behavior of string lists: MyHash := TStrubglist.Create; MyHash['Alan'] := 'Mead'; I also have to admit being worried by some of the code... like the lack of error checking (as noted by the author). -Alan _

[fpc-pascal] What is the portable approach?

2005-09-30 Thread Alan Mead
I have data that would fit an associative array if they really existed in Pascal, but while the key is a string, the values are reals [0,1]. So, I have been using a TStringList and something like (from memory): MyList.AddObjects('key1',pointer(round(value1*maxint)); I realized that someday I mig

Re: [fpc-pascal] Porter Stemming for FPC 2.0

2005-09-19 Thread Alan Mead
memsom <[EMAIL PROTECTED]> wrote: > Reading PChars at negative indexes? Buffer underrun in other > words... This > is absolutely not a good thing. If FPC is preventing buffer under > and > overrruns, then it is actually right, for once, and Delphi is > wrong, > wrong, wrong! Yeah, it seems dumb.

[fpc-pascal] Porter Stemming for FPC 2.0

2005-09-16 Thread Alan Mead
It's great that 2.0 is out! Unfortunately it seems to break some code I used for Porter Stemming because the code sometimes reads data from a pchar at negative indexes. Reportedly this works fine in Delphi 5 and I don't seem to have trouble with Delphi 7 but it generates RTEs using fpc 2.0. (If

[fpc-pascal] Win32 CGI fails?

2005-01-24 Thread Alan Mead
On Linux, FPC creates nice CGI's but I cannot figure out what I'm doing wrong under Windows XP. Below you can see the error. This is on the FCL test CGI program. I ran this under Cgywin, but the same thing happens when I run it in a DOS command window (and, apparently, under Apache). I don't hav

[fpc-pascal] Linux stack wigginess on 1.9.4/1.9.5

2004-12-03 Thread Alan Mead
I saw someone recently say that there were some known issues with the stack on recent version of FPC for Linux. I'm wondering if what I've found was known or new. I have a lengthy program that compiles fine but crashes if I allocate too much local storage in a procedure (a large array). Switchin

Re: [fpc-pascal] Monitoring memory usage

2004-11-10 Thread Alan Mead
Thanks for everyone, I'll tae a look at this. -Alan --- Mattias Gaertner <[EMAIL PROTECTED]> wrote: > On Wed, 10 Nov 2004 08:46:21 +0100 > Florian Klaempfl <[EMAIL PROTECTED]> wrote: > > > Alan Mead wrote: > > > > > Is there an easy way t

[fpc-pascal] Monitoring memory usage

2004-11-09 Thread Alan Mead
Is there an easy way to monitor memory allocations during a program run (for debugging purposes)? Ideally, this would be some sort of hook into the memory manager rather than something like gdb because the program runs for hours. A list of the calling subroutine (or line number) and the amoun

re: [fpc-pascal] Find error?

2004-11-09 Thread Alan Mead
ome other gdb-supporting editor, which can take you > straight to the error from the address, rather than needing the > line info in english. > > ~David. > > Original Message > > From: Alan Mead <[EMAIL PROTECTED]> > > Sent: Tuesday, November 09

[fpc-pascal] Find error?

2004-11-09 Thread Alan Mead
Turbo Pascal used to have a "find error" function... Is there a similar function in Free Pascal (I'm using 1.9.4)? I compiled the executable with -gl but I get the below: An unhandled exception occurred at 0x08071049 : EOutOfMemory : Out of memory $08071049 $080705FD $08068B2A $08068E30

Re: [fpc-pascal] Strange exception

2004-10-29 Thread Alan Mead
--- Peter Vreman <[EMAIL PROTECTED]> wrote: > >> An unhandled exception occurred at 0x080742B2 : > >> ERangeError : Range check error > >> $080742B2 SVDCMP2, line 337 of lsa2.pas > >> $B924 P$LSA2_finalize_implicit, line 692 of lsa2.pas > >> > >> What makes it strange is that line 337

Re: [fpc-pascal] Strange exception

2004-10-28 Thread Alan Mead
I have 1.9.5 installed on a second computer. When I compile using the newer version, I get a slightly different error message: An unhandled exception occurred at 0x0807498D : ERangeError : Range check error $0807498D SVDCMP2, line 337 of lsa2.pas $0001 -Alan --- Alan Mead <[EM

[fpc-pascal] Strange exception

2004-10-28 Thread Alan Mead
I compiled a program using -gl with FPC 1.9.4 on Linux and I get this run-time-error when running the program: An unhandled exception occurred at 0x080742B2 : ERangeError : Range check error $080742B2 SVDCMP2, line 337 of lsa2.pas $B924 P$LSA2_finalize_implicit, line 692 of lsa2.pas W

[fpc-pascal] Cross-platform gdbm replacement

2004-10-27 Thread Alan Mead
I need to have some simple, cross-platform database functionality... at a minimum, I need to be able to write a datafile that is easily searched... kind of like a TStringList on disk. I think dbm/gdbm would suffice. If it had the ability to hold multiple columns and several indexes to those colum

Re: [fpc-pascal] Encrypt routine

2004-10-26 Thread Alan Mead
I believe that Free Pascal comes with a package, idea, that does encryption. If you just want to avoid casual viewing, you might try just compressing the data using TCompressedStream. -Alan --- Luiz Américo <[EMAIL PROTECTED]> wrote: > I'm looking for a simple file encryption routine (or an ext

Re: [fpc-pascal] -gl -Co as compiler directives?

2004-10-18 Thread Alan Mead
Maebe <[EMAIL PROTECTED]> wrote: > > On 18 okt 2004, at 19:14, Alan Mead wrote: > > > Are there a source-code directives to generate line numbers > > Not directly, although although you can get the same effect by > using > > {$d+} > uses lineinfo; > > (

[fpc-pascal] -gl -Co as compiler directives?

2004-10-18 Thread Alan Mead
Are there a source-code directives to generate line numbers and check overflows? I compile my code on several systems and it's a lot more convenient enabling or disabling these in the code. -Alan ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lis

[fpc-pascal] How do I do this safely?

2004-10-15 Thread Alan Mead
I am trying to write code that will compile cleanly in current and future versions of FPC (in mode Delphi) and Delphi on 32- and 64-bit platforms. I need to store strings and their floating point rankings in a list and I was advised to use the single type and store them in the TStringList.Objects

Re: [fpc-pascal] RE: Random(), Randomize, and Linux permissions

2004-09-29 Thread Alan Mead
Alan Mead <[EMAIL PROTECTED]> wrote: > I was hoping that the algorithms underlying the RTL.Randomize and > RTL.Random would switch to using MT in fpc version 2. Here's the post I recalled: http://www.mail-archive.com/[EMAIL PROTECTED]/msg01565.html Is this still the case that

Re: [fpc-pascal] RE: Random(), Randomize, and Linux permissions

2004-09-29 Thread Alan Mead
Jeff, Thanks for this link. I found a Pascal implementation of MT somewhere .. not this one I think. Is it your code? Do you know the difference between the Real1() and Real2() etc. methods? I was hoping that the algorithms underlying the RTL.Randomize and RTL.Random would switch to using MT i

Re: [fpc-pascal] Known issue with 1.9.4 [2004/05/30] for i386 on Linux?

2004-09-29 Thread Alan Mead
Alan Mead <[EMAIL PROTECTED]> wrote: > I don't know if this is really a bug or whether it's known... I > have > this line of code: > > while ( (i<=Length(fmt)) and (NOT fmt[i] IN ['0'..'9']) ) do > inc(i); > > It compile

Re: [fpc-pascal] Random(), Randomize, and Linux permissions

2004-09-29 Thread Alan Mead
ROTECTED]> wrote: > > On 29 sep 2004, at 08:36, Alan Mead wrote: > > > It's known that Randomize() is not effective when called > rapidly... > > Why do you want to call randomize rapidly? Reading a numbers from > /dev/random is semantically closer to cal

[fpc-pascal] Random(), Randomize, and Linux permissions

2004-09-28 Thread Alan Mead
It's known that Randomize() is not effective when called rapidly... I tried to solve this using the code sample below. I can cat /dev/null (without becoming root) but when I run the code below I get an access denied RTE at 'Reset(f,1);'.. this code works fine when run as root... anyone have a sugg

[fpc-pascal] Known issue with 1.9.4 [2004/05/30] for i386 on Linux?

2004-09-28 Thread Alan Mead
I don't know if this is really a bug or whether it's known... I have this line of code: while ( (i<=Length(fmt)) and (NOT fmt[i] IN ['0'..'9']) ) do inc(i); It compiles fine but I get a RTE: An unhandled exception occurred at 0x0807B180 : EVariantError : Invalid variant operation $0807B180

Re: [fpc-pascal]Keyboard unit questions

2004-09-10 Thread Alan Mead
--- John Coppens <[EMAIL PROTECTED]> wrote: > On Fri, 10 Sep 2004 08:33:21 -0700 (PDT) > Alan Mead <[EMAIL PROTECTED]> wrote: > > > I just used the keyboard unit for the first time and it's quite > > impressive but I have some questions. > > >

[fpc-pascal]Keyboard unit questions

2004-09-10 Thread Alan Mead
I just used the keyboard unit for the first time and it's quite impressive but I have some questions. Initially, I couldn't link on my old RH 7.2 machine because FPC 1.9.4 couldn't find the GPM libraries. This is probably a stupid question but is there a way that FPC can find libraries better so

Re: [fpc-pascal]Porter stemming routine for FPC [solved]

2004-09-03 Thread Alan Mead
Ack! After posting this, I actually read the code and discovered that the author provided "pure pascal" alternative bits. The unit compiles without even a warning now. Sorry. -Alan --- Alan Mead <[EMAIL PROTECTED]> wrote: > Porter stemming is an approximate method for

[fpc-pascal]Porter stemming routine for FPC

2004-09-03 Thread Alan Mead
Porter stemming is an approximate method for removing English-language endings from words ... for example, to match 'happy' and 'happiness'. I found a website on tartarus.org that purports to be Porter's website and has a Delphi 5 implementation of his word stemming algorithm. But I cannot get

Re: [fpc-pascal]Where is the error?

2004-08-31 Thread Alan Mead
--- Michalis Kamburelis <[EMAIL PROTECTED]> wrote: > Solution is to compile in delphi mode: >fpc -Mdelphi mat.pas > works OK. Thanks! -Sd worked great... in fact FPC may produce better diagnostics than Delphi.. -Alan ___ fpc-pascal maillist -

[fpc-pascal]Where is the error?

2004-08-31 Thread Alan Mead
I am trying to compile a Delphi matrix package using fpc 1.9.4 and I don't know if I misunderstand FPC's overloading or if there is an FPC problem. The code is located here: http://www.fssc.demon.co.uk/Delphi/delphi.htm#TMatrix Lines 84-85 define a transpose method: 84 function transpose :

[fpc-pascal]CORBA

2004-08-27 Thread Alan Mead
I am creating a win32 program that needs to be called by a Cold Fusion page to generate results for a particularly complex search. The CF guys tell me that they can execute my program (passing data to it on the command line) or execute a function via CORBA. The command line looks infeasible so I

Re: [fpc-pascal]exec and wait

2004-08-26 Thread Alan Mead
--- Marco van de Voort <[EMAIL PROTECTED]> wrote: > [ Charset 0 unsupported, skipping... ] > > (hmm) > > Anyway, don't use unit DOS, it is legacy, but > sysutils.executeprocess > My win32 docs, installed as part of 1.9.4 and stamped '1.9' don't seem to show this function. What are the callin

[fpc-pascal]Delphi/FPC cross-compile

2004-08-04 Thread Alan Mead
My Delphi experience is limited to going through "Delphi for Dummies" a few years back, I was once a proficient Turbo Pascal 5 programmer. I've been using FPC.. one of the things I really like about it is being able to compile the same code on Windows and Linux. I've been given a copy of Delphi (

Re: [fpc-pascal]Extension of macros exceeds a depth of 16

2004-08-04 Thread Alan Mead
Ah. Or "Recursion of macros exceeds..." I'll check my code. -Alan --- Olle Raab <[EMAIL PROTECTED]> wrote: > 04-07-28 21.42, skrev Alan Mead följande: > > > As a I mentined earlier today in a different thread, I have > upgraded > > to 1

RE: [fpc-pascal]Two simple dynamic arrays questions

2004-07-28 Thread Alan Mead
ful with low(x) as the index > starting spot. > If this is too easy what am I missing? > > Stu > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Jonas > Maebe > Sent: Wednesday, July 28, 2004 12:00 PM > To: [EMAIL PROTE

[fpc-pascal]Extension of macros exceeds a depth of 16

2004-07-28 Thread Alan Mead
As a I mentined earlier today in a different thread, I have upgraded to 1.9.4 and I appreciate the greater checking. Most of the new warnings I get are clear but one of my units now reports "Extension of macros exceeds a depth of 16". What does this warning mean and what is the rammification of i

[fpc-pascal]Two simple dynamic arrays questions

2004-07-28 Thread Alan Mead
Hi, I am new to dynamic/open arrays. I've installed 1.9.4 and played with the example code, read the docs, and converted a sample program that I'd written using static arrays to dynamic. I have two residual questions: (1) Previously, I had fillchar'd the static arrays with zeros because they are

Re: [fpc-pascal]Math/Algebra Unit for FreePascal

2004-07-20 Thread Alan Mead
--- [EMAIL PROTECTED] wrote: > I have the 'Numerical Recipes in Pascal' CD-ROM, but I > suspect > there might be copyright issues involved when distributing these > algorithms > :/ A version of the NR code is freely available on the net as a zip file complete with the code and the examples. The c

[fpc-pascal]Arjan Dronkers?

2004-07-16 Thread Alan Mead
Is Arjan Dronkers still on the list or does anyone know this author of CFGR, a unit that assists Free Pascal users to read and write configuration files? I have made some modifications and bug fixes to the code, dated 1999, and I wanted to get in touch with the author. -Alan ___

Re: [fpc-pascal]RTF

2004-06-28 Thread Alan Mead
--- David G Jenkins <[EMAIL PROTECTED]> wrote: > rtfpars > Contains a RTF (Rich Text Format) parsing class. All that > needs to > be done is set some event handlers and you can display RTF wherever > you > want. > > I would like to use this to generate RTF files but don't have any > docume

Re: [fpc-pascal]Fw: RE: Toolkit

2004-05-25 Thread Alan Mead
Frank, This is cool. So, IIRC the original TTT sources have a whole lot of ASM code (I don't recall if it was ASM blocks on, I think my use pre-dated ASM blocks). Computers are so fast today that I wonder if it is needed; would we want to port the asm or just replace it with Pascal? (Hint, hint

Re: [fpc-pascal]Easy graphics

2004-04-22 Thread Alan Mead
Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > Yes. You need at least 1.9.2. > The best would even be to download the latest CVS, as it supports > more formats. > Or you can try to download the FCL sources and recompile them with > FPC 1.0.10. I appreciate your help with this. I installed 1.9.

Re: [fpc-pascal]Easy graphics

2004-04-22 Thread Alan Mead
Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > Very easy. > > Roughly like this: > > uses fpimage,fpcanvas,fpwritepng, fpwritejpg; > > [...] > > See the fcl/image directory for all needed units. > Supported are bmp,png,jpg,xpm and PPM/PBM. > > There is no documentation yet, but I can provide

[fpc-pascal]Unit png example?

2004-04-22 Thread Alan Mead
I just asked about a way to create images. Then I saw the png unit and I got it to link. But now I'm lost trying to translate the libpng C examples to Pascal. Does anyone have an example or two of a program that uses unit png? -Alan __

[fpc-pascal]Easy graphics

2004-04-22 Thread Alan Mead
What is the easiest way to create PNG or JPG images from within a FPC program? Ideally, in a cross-platform way although I mostly use Linux. Thanks! -Alan __ Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25¢ http://

Re: [fpc-pascal]Technojock...

2004-04-16 Thread Alan Mead
A lot of my old Pascal code has TTT dependencies. Maybe someone on the list knows the guy behind TTT but I tried to track him down once and I didn't have a lot of luck. I seem to recall that the company moved once and then I figured it went out of business (sorry I don't have the specifics). Do

[fpc-pascal]Web strike

2004-04-09 Thread Alan Mead
Sorry if this is off-topic; I just saw the Free Pascal homepage. Yikes! I think you are wise to be very concerned about software patents. Is there anything that US citizens can do to help? -Alan __ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway h

Re: [fpc-pascal]Conditional compilation ELSE-IF?

2004-04-08 Thread Alan Mead
--- Peter Vreman <[EMAIL PROTECTED]> wrote: > {$if defined(linux)} > Slash:='/' > {$elseif defined(win32)} > Slash:='\' > {$elseif defined(macos)} > Slash:=':' > {$else} > {$error Unsupported target} > {$endif} > > Better is to use PathSeparator from the System unit Thanks to everyone who

[fpc-pascal]Conditional compilation ELSE-IF?

2004-04-08 Thread Alan Mead
I have the following code in a function: {$IFDEF LINUX} Slash := '/'; {$ENDIF} {$IFDEF WIN32} Slash := '\'; {$ENDIF} Obviously, FPC supports many other platforms. Is there a better way to handle this? Also, will this work if I ever cross-compile? Is there a w

[fpc-pascal]ARM packages of >= 1.9.3?

2004-03-30 Thread Alan Mead
I just got a Zaurus and I'd love to use FPC on it. Or, failing that, I'd like to try cross-compiling on Linux for ARM. Are there any Zarus users out there who could lend me a hand getting started? -Alan __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. F

[fpc-pascal]Installing 1.9.2 rpm alongside 1.0.10

2004-01-23 Thread Alan Mead
Sorry, this is really an RPM question. I'd like to try out the new beta but without losing the official version (which was installed using RPM). Is it possible to install the 1.9.2 RPM alongside the 1.0.10 package? (And if so, how?) I'm running Red Hat 7.2 if that matters... Thanks! -Alan __

Re: [fpc-pascal]Free Pascal - general commet / suggestions

2004-01-14 Thread Alan Mead
--- Paschal Mushubi <[EMAIL PROTECTED]> wrote: > because I can find free easy to use > libraries to accomplish a lot of what I need to do which is usually > developing Oracle > database apps. > Unfortunately I can't find the libraries (units) I am looking for. > Has > someone tried to mimic the S

Re: [fpc-pascal]CRT prevents break?

2004-01-03 Thread Alan Mead
--- [EMAIL PROTECTED] wrote: > > Thanks for the information. Can you give me a pointer to > "catching > > these keys" myself? > > Just check the result of the next key with readkey. > It should return #3 for ctrl-c, and #26 for ctrl-Z. Ah. Now I see. It's been a while ... is ReadKey blocki

Re: [fpc-pascal]CRT prevents break?

2004-01-02 Thread Alan Mead
--- Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > This is a 'known issue'. It's normal behaviour. AFAIK, CTRL-C and > CTRL-Z > are normally handled by the shell. The CRT unit takes over the > terminal, > preventing the shell from catching these keys. There is no > work-around > except catchi

[fpc-pascal]CRT prevents break?

2004-01-01 Thread Alan Mead
I'm using "Free Pascal Compiler version 1.0.10 [2003/06/26] for i386" on Linux 2.4.7-10 and when I use the CRT unit, I cannot break a program with Control-C. Even Control-Z doesn't stop the program's execution. I have to kill it. I've attached an example program (compile with "-dSCREWED_UP" to s

Re: [fpc-pascal]Random generator

2003-12-07 Thread Alan Mead
--- Florian Klaempfl <[EMAIL PROTECTED]> wrote: > /dev/random is very random, it's gets it's data from an "entropie > pool" > which is filled using the random times when hardware interrupts are > > triggered. Because this pool has a limited size and only a few > hardware > interrupts per second

Re: [fpc-pascal]Random generator

2003-12-06 Thread Alan Mead
My version of Linux includes a /dev/random. Is there any way to use this to get better random sequences. When I cat this device, it looks like it runs out of data pretty quickly, but I bet it would make a series of fairly random seeds... -Alan --- jordi <[EMAIL PROTECTED]> wrote: > El ds, 06 de

RE: [fpc-pascal]opening files from a text list

2003-11-29 Thread Alan Mead
Donald, What happens if the "Mighty Ducks" or the "White Sox"--or my favorite, "Eat at Joe's" play? The compiler reads strings just fine but you as the programmer need to understand data types. You also need to understand your problem. Parsing arbitrary and possibly inconsistent psuedo-English

Re: [fpc-pascal]Profiling FPC executables

2003-11-26 Thread Alan Mead
Thanks Peter and Marco! This is very helpful. -Alan > For the moment only gprof. Maybe in the future also > valgrind/cachegrind > > Compile your program with -pg > Start your program (this will generate a gmon.out) > Run gprof > > > > ___ > fpc-pa

[fpc-pascal]Profiling FPC executables

2003-11-26 Thread Alan Mead
I'm writing a simulation that will take hours or days to run. I've never used formal profiling tools but this seems like a good opportunity. I'm working on Linux and I'm still using FPC 1.0.10. What tools are available to me? Thanks! -Alan __ Do you Yahoo!? Fre

Re: [fpc-pascal]Full-featured output library

2003-11-19 Thread Alan Mead
--- Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > All 100% Object Pascal. Still under development, but usable, and > I'm > open to suggestions for improvement. Thanks for this reply! I'd like to try this but my knowledge of Pascal programming was frozen around TP 5. (Before OOP and before B

[fpc-pascal]Full-featured output library

2003-11-18 Thread Alan Mead
utput in a variety of formats like PostScript, PDF, Word, RTF, HTML? I would need it to work on Windows and Linux. This seems like a tall order but I thought I would ask... maybe OOo could be accessed or something. Any advice appreciated. Thanks! -Alan Mead __ Do

Re: [fpc-pascal].ppu and .o files

2003-10-03 Thread Alan Mead
The .ppu are compiled units. You probably want to keep them hanging around, but it's not neccessary. If you delete them, the compiler simply needs to re-compile all the units each time you compile. If you leave them, I think it will only compile the changed units and the main program. I think

Re: [fpc-pascal]XP=extreme pain in the butt

2003-09-23 Thread Alan Mead
--- "A.J. Venter" <[EMAIL PROTECTED]> wrote: [Alan explains that the install crashes on his new XP machine] > Perhaps you should try to run the installer with XP's "windows 98 > compatibility mode" - should find that under the properties sheet > for > the app - there's a '95 mode as well. > > I

[fpc-pascal]XP=extreme pain in the butt

2003-09-17 Thread Alan Mead
Is there a win32 binary install kit for Lazarus? I see hints that Lazarus runs on Win32 but the download folders for Win32 are empty. (Apologies if I'm not supposed to ask about Lazarus here...) So I fetched the latest FPC win32 full install ZIP from the US mirror but when I clicked on the insta

Re: [fpc-pascal]CGI: cgiapp.pp and ezcgi.pp possible bug

2003-09-14 Thread Alan Mead
--- James Mills <[EMAIL PROTECTED]> wrote: > > It hands when you POST data with two angled bracked, eg: "> >" > I have not tried using GET, I don't think it would be appropiate > for a > form based page :) Form data can be POST'd or GET'd depending on the way you form the 'form' tag. You're righ

Re: [fpc-pascal]CGI: cgiapp.pp and ezcgi.pp possible bug

2003-09-13 Thread Alan Mead
. (I'm blanking on name of the other method)? -Alan --- James Mills <[EMAIL PROTECTED]> wrote: > On Fri, Sep 12, 2003 at 11:09:28AM -0700, Alan Mead wrote: > > Is this something demonstrable in a small program? > I could rewrite another version of the cgi app with a simple htm

Re: [fpc-pascal]several questions

2003-09-12 Thread Alan Mead
--- Thomas Schatzl <[EMAIL PROTECTED]> wrote: > >When I run pascal programs (not just FP, but other compilers > too), the > > last text-colour I used stays even after the program is finished. > The > > original default colour only returns after I call something else. > e.g. > > DR-DOS editor.

Re: [fpc-pascal]CGI: cgiapp.pp and ezcgi.pp possible bug

2003-09-12 Thread Alan Mead
Is this something demonstrable in a small program? --- James Mills <[EMAIL PROTECTED]> wrote: > Hi all again, > > I'm reposting this question as I would like to find some answers to > this > problem, or writing this particular kind of CGI App will be > impossible. > (Forum). > > I think there m

Re: [fpc-pascal]HELP!

2003-08-05 Thread Alan Mead
You should consider subscribing to the list, at least briefly. I think you are double-clicking on the free pascal executable which opens a console window, prints some text, and quits. The window stays visible so you can read the text but the session is over. To use Free Pascal this way, you woul

[fpc-pascal]ASCII plotting

2003-07-29 Thread Alan Mead
***- -3.5 3.50 Because I'm plotting discrete functions, changing the number of X values requires a complicated interpolation procedure... So, does anyone, by chance, already have a unit for doing this? -Alan Mead __ Do you Yahoo!? Yahoo! SiteBu

[fpc-pascal]What do you like about FPC?

2003-07-24 Thread Alan Mead
h FPC. Delphi is so much more than a compiler. I wouldn't bet against FPC reaching that level of bloat... I mean functionality... but it will take some time. -Alan Mead __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design sof

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-15 Thread Alan Mead
--- James Mills <[EMAIL PROTECTED]> wrote: > > Well the only bad thing is that it returns data where there should > be no > data. ie: '""' instead of the expected '', causing the program to > treat > '""' as if it were a real string. All the better. The string '""' is unlikely to exists you yo

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-15 Thread Alan Mead
--- James Mills <[EMAIL PROTECTED]> wrote: > On Tue, Jul 15, 2003 at 08:35:44AM -0700, Alan Mead wrote: > > > > --- James Mills <[EMAIL PROTECTED]> wrote: > > > > > My program relies on the fact that some fields (which are > string > > > t

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-15 Thread Alan Mead
--- James Mills <[EMAIL PROTECTED]> wrote: > My program relies on the fact that some fields (which are string > types) > are null. I'm not sure what to say next so I'll leave it at that :P If your database never contains an empty string, then your program can rely on the empty strings you retrie

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-15 Thread Alan Mead
--- James Mills <[EMAIL PROTECTED]> wrote: > On Tue, Jul 15, 2003 at 04:36:24AM -0700, Alan Mead wrote: > > > > --- James Mills <[EMAIL PROTECTED]> wrote: > > > > > Just reconfirming with you and solidifying my knowledge. > > > The

Re: [fpc-pascal]SQLite and NULL Strings...

2003-07-15 Thread Alan Mead
--- James Mills <[EMAIL PROTECTED]> wrote: > Just reconfirming with you and solidifying my knowledge. > The reason it returns "" is because: when working with > native pascal types, assigning null to a string results > in an empty string "" right ? > > cheers > James James, Pascal is a stro

Re: Internal error 8888 (was Re: [fpc-pascal]Strange Segfault...)

2003-07-14 Thread Alan Mead
--- [EMAIL PROTECTED] wrote: > > {$H+} > or > {$H-} > > definitely works. Sorry, by does nothing I meant that it does nothing to solve my problems with strings. Of course, the fundamental problem is that I don't fully understand anything but old-fashioned TP strings. [EMAIL PROTECTED] seq-baye

Internal error 8888 (was Re: [fpc-pascal]Strange Segfault...)

2003-07-14 Thread Alan Mead
--- James Mills <[EMAIL PROTECTED]> wrote: > On Mon, Jul 14, 2003 at 06:48:06AM -0700, Alan Mead wrote: > > I'm running into this string problem as well. I'd like to use > > strings longer than 255 but I get strange errors like: > > [...] > I believe t

Re: [fpc-pascal]Strange Segfault...

2003-07-14 Thread Alan Mead
I'm running into this string problem as well. I'd like to use strings longer than 255 but I get strange errors like: [EMAIL PROTECTED] seq-bayes]$ fpc mcmc3pl.pas Free Pascal Compiler version 1.0.6 [2002/05/23] for i386 Copyright (c) 1993-2002 by Florian Klaempfl Target OS: Linux for i386 Compili

[fpc-pascal]FORTRAN-like read

2003-07-09 Thread Alan Mead
I want to provide a formatted read like FORTRAN's. I have found a public-domain implementation but it concatenats the input data as bytes, making assumptions about the endian-ness and size of various types. The alternatives I've devised are (1) returning a sequence of strings or (2) a linked list

Re: [fpc-pascal]New to the list/question

2003-07-09 Thread Alan Mead
Window(). -Alan --- Kevin Monceaux <[EMAIL PROTECTED]> wrote: > Alan, > > Text based - something that would run on a Linux text console, old > dumb > terminal, DOS in the days before Windows, etc. > > > Kevin > > On Wed, 9 Jul 2003, Alan Mead wrote: > &

Re: [fpc-pascal]New to the list/question

2003-07-09 Thread Alan Mead
Kevin, Welcome! What do you mean by a "text-based interface"? -Alan --- Kevin Monceaux <[EMAIL PROTECTED]> wrote: > Pascal enthusiasts, > > I'm new to the list and just wanted to introduce myself. I got my > first > tast of Pascal in college on a VAX 11/750 under the VMS operating > system.

Re: [fpc-pascal]RE: free pascal cross compiler from windows to linux

2003-06-30 Thread Alan Mead
--- Jeff Pohlmeyer <[EMAIL PROTECTED]> wrote: > > > When I read files off a floppy, they are often all copied with > > their executable bit set (which is annoying). > > You should be able to control this by adding the "noexec" or "exec" > > option to the floppy entry in your /etc/fstab file: >

Re: [fpc-pascal]free pascal cross compiler from windows to linux working.

2003-06-28 Thread Alan Mead
--- Harald Houppermans <[EMAIL PROTECTED]> wrote: > I am just wondering if the free pascal compiler can set these > permission > automatically for the linux executables. No, there is no executable bit to set in the Windows attribute set. How are you copying it? When I read files off a floppy,

[fpc-pascal]/usr/lib/fpc/1.0.6/ppc386 vs. /usr/bin/fpc vs. fpc.cfg?

2003-06-14 Thread Alan Mead
Are there known issues with 1.0.6 and it's finding the configuration file? Does it matter whether I compile using the 'fpc' or 'ppc386' command (they differ on my system): [EMAIL PROTECTED] ian]$ more ~amead/fpc.cfg -gl -Co -Cr [EMAIL PROTECTED] ian]$ ls -l `which ppc386` lrwxrwxrwx1 root

Re: [fpc-pascal]GetMem crazy problem

2003-06-10 Thread Alan Mead
--- Eduardo Morras <[EMAIL PROTECTED]> wrote: > At 12:46 10/06/2003 -0700, you wrote: > >I just looked at this again. If you are really getting RTE 201 > then > >it (probably) has nothing to do with the GetMem's. It means you > are > >over-indexing your arrays or seomthing similar. Good luck. >

Re: [fpc-pascal]GetMem crazy problem

2003-06-10 Thread Alan Mead
I just looked at this again. If you are really getting RTE 201 then it (probably) has nothing to do with the GetMem's. It means you are over-indexing your arrays or seomthing similar. Good luck. -Alan --- Alan Mead <[EMAIL PROTECTED]> wrote: > Eduardo, > > I did not foll

Re: [fpc-pascal]GetMem crazy problem

2003-06-10 Thread Alan Mead
Eduardo, I did not follow your example, but are you aware of the "growing heap" behavior of FreePascal and the ReturnNilGrowHeapFails variable? http://www.freepascal.org/docs-html/prog/progsu113.html#x163-1680008.4 Also, I think this ReturnNilGrowHeapFails behavior is broken in 1.0.6 and fixed i