From Melesys at aol.com Tue May 1 10:59:13 2001 From: Melesys at aol.com (Melesys at aol.com) Date: Tue, 1 May 2001 04:59:13 EDT Subject: [fpc-pascal]ANN: ICE (the open source Youseful project) has been launched! Message-ID: Nevrona Designs and the ICE Development Group are proud to announce the beginning of the ICE open source project. <http://www.nevrona.com/ice> ICE (Install Creation Environment) is the open source licensed version of the popular Youseful installation component suite. ICE is open source and is licensed under the modified BSD and MPL licenses <http://www.nevrona.com/ice/License.html>. ICE is free to download <http://www.nevrona.com/ice/downloads.htm>, free to use and comes with full source code. ICE is the most flexible installation option for Delphi/C++Builder programmers because it allows you to create your installations using the ICE components, the ICE wizards and your own code within the Delphi/C++Builder environment. For a review of ICE done by Alan C. Moore (when it was known as Youseful), visit the Delphi Informant web site < http://www.delphizine.com/productreviews/1999/06/di199906am_p/di199906am_p. asp>. Work is already under way for the next release of ICE to include several exciting new features including enhancing the web based install using Indy <http://www.nevrona.com/indy>. Whether you are a current user of Youseful or someone looking for a better installation system, the ICE Development Group is calling on you to support this great product by joining one of the several teams <http://www.nevrona.com/ice/teams/index.html> that are now being formed. You can contribute, comment or simply lurk around but please participate if you can. Sincerely, The ICE Development Group http://www.nevrona.com/ice -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcov at stack.nl Tue May 1 12:38:02 2001 From: marcov at stack.nl (Marco van de Voort) Date: Tue, 1 May 2001 12:38:02 +0200 (CEST) Subject: [fpc-pascal]ANN: ICE (the open source Youseful project) has been launched! In-Reply-To: "from Melesys@aol.com at May 1, 2001 04:59:13 am" Message-ID: <20010501103802.616D5E10@snail.stack.nl> > Nevrona Designs and the ICE Development Group are proud to announce the > beginning of the ICE open source project. < HREF="http://www.nevrona.com/ice">http://www.nevrona.com/ice> I miss the FPC compability statement? To make it relevant for this group? From LeeJ at logica.com Tue May 1 15:01:19 2001 From: LeeJ at logica.com (Lee, John) Date: Tue, 1 May 2001 14:01:19 +0100 Subject: [fpc-pascal]dos approx delay fn that releases cpu Message-ID: <593D817077A5D211A055009027285F2805E5B858@knuth.logica.co.uk> Anyone know anything better than the code below (from John Stockton's site), comments from [fpc-devel] , which releases cpu that will work for win95 and win 2000? this is results so far from fpc developers... I've noticed that although this seems to work mostly in fpc dos program under win2000 it sometimes crashes & creates an exception...Under win95 it _always_ seems to work, so assume win2000 problem is the dos emulator...The code relies on the timer interupt working correctly as in real dos. What is the 'best' fpc dos code (including the dos_idle pls which does approx delay w/o wasting cputime and can be compiled with go32v2 . TIA ---------------------------------------------- {delay of n ticks releasing cpu} procedure dlay(n : integer) ; const t : byte = 0 { static! saves some stack space } ; var timer : byte absolute $0040:$006C ; begin while n > 0 do begin t := timer ; repeat asm hlt end until timer<>t ; Dec(n) ; end end ; ------------------------------------------------ > > Stockton's site) that works in tp (under win95 and on win2000) > > and releases cpu time. Is there an equivalent that'll work in fpc? > It may be possible to add this to the go32v2 crt unit's > current delay function (simply add a "hlt" in both the initdelay and > delay functions internal loop). It might cause a loss of accuracy > though... _If_ we decide to add something similar to the delay unit, we should replace the halt instruction with the DOS idle call, because that many TSRs use this one under plain DOS and it's still supported under Wxx to lower the CPU load. From Melesys at aol.com Tue May 1 18:32:44 2001 From: Melesys at aol.com (Melesys at aol.com) Date: Tue, 1 May 2001 12:32:44 EDT Subject: [fpc-pascal]ANN: ICE (the open source Youseful project) has been launched! Message-ID: <18.c25279f.28203f2c@aol.com> In a message dated 5/1/2001 12:39:24 AM Hawaiian Standard Time, marcov at stack.nl writes: > I miss the FPC compability statement? To make it relevant for this group? > > > It can be!! joe mele -------------- next part -------------- An HTML attachment was scrubbed... URL: From becker at lufa-sp.vdlufa.de Wed May 2 09:05:14 2001 From: becker at lufa-sp.vdlufa.de (Stefan Becker) Date: Wed, 2 May 2001 09:05:14 +0200 Subject: [fpc-pascal]Problem reading "Pos1" and "End" Keys with Linux Message-ID: dear Pascal list, After trying my wits with the CRT NCRT and OCRT units, I still can not read the "Pos1" or "End" Keys from the Terminal. All other Keys return single or double Codes just like the old dos Terminal would with TP. For example the "Pos1" key returns a sequence of "#27 '[' #72" instead of the the normal "#0 #71" Does someone know a way to get this to work right. BTW: SuSE Linux 6.4 with KDE Terminal my thanks, Stefan Becker LUFA Speyer (EDV) email: becker at lufa-sp.vdlufa.de tel : +49 (0)6232-629542 fax : +49 (0)6232-629544 http://www.lufa-speyer.de/ From marcov at stack.nl Thu May 3 01:42:33 2001 From: marcov at stack.nl (Marco van de Voort) Date: Thu, 3 May 2001 00:42:33 +0100 Subject: [fpc-pascal]ANN: ICE (the open source Youseful project) has been launched! In-Reply-To: <18.c25279f.28203f2c@aol.com> Message-ID: <3AF0A979.8980.1878179@localhost> > > I miss the FPC compability statement? To make it relevant for this > > group? > It can be!! Did you at least started the FPC support? Anything? You of course understand that if any Delphi project started posting announces here, it would get somewhat messy? I.O.W. I don't have anything against your project, but, frankly, the announce doesn't belong here. At least, not until at least some serious link with FPC exist except that it is in Delphi. Marco van de Voort (MarcoV at Stack.nl or marco at freepascal.org) From pasco at acm.org Fri May 4 19:30:19 2001 From: pasco at acm.org (Rich Pasco) Date: Fri, 4 May 2001 10:30:19 -0700 (PDT) Subject: [fpc-pascal]PPAS.BAT and directory paths with spaces in them Message-ID: <200105041730.KAA36014@mx0.daemonmail.net> Can anyone enlighten me as to the origin of PPAS.BAT ? I'm using the released Free Pascal version 1.0.4 under Windows NT 4.0, compiling for a Win32 target. I use the stand-alone PPC386 compiler. If source filename on the PPC386 command line includes a path with spaces in it, then the linker fails and leaves file PPAS.BAT on my disk. For example, the command line, ppc386 "D:\memos\rich pasco\gentable.pas" results in the output: Free Pascal Compiler version 1.0.4 [2000/12/30] for i386 Copyright (c) 1993-2000 by Florian Klaempfl Target OS: Win32 for i386 Compiling d:\memos\rich pasco\gentable.pas Linking d:\memos\rich pasco\gentable.exe -: cannot open pasco\gentable.exe: No such file or directory gentable.pas(47,1) Warning: Error while linking Closing script ppas.bat 47 Lines compiled, 0.5 sec The linker graciously leaves PPAS.BAT on my disk for inspection. A copy appears below. It seems obvious that the bug is in the fourth line: On the ldw command line, the output executable file name should have quotes around it. In order to fix PPAS.BAT I need to know where it came from. - Rich --------------------- begin PPAS.BAT ----------------------------- @echo off SET THEFILE=d:\memos\rich pasco\gentable.exe echo Linking %THEFILE% d:\pp\bin\win32\ldw.exe -s -b base.$$$ -o d:\memos\rich pasco\gentable.exe link.res if errorlevel 1 goto linkend goto end :asmend echo An error occured while assembling %THEFILE% goto end :linkend echo An error occured while linking %THEFILE% :end ---------------------- end PPAS.BAT ------------------------------ From tom_at_work at yline.com Fri May 4 20:23:30 2001 From: tom_at_work at yline.com (Thomas Schatzl) Date: Fri, 4 May 2001 20:23:30 +0200 Subject: [fpc-pascal]PPAS.BAT and directory paths with spaces in them References: <200105041730.KAA36014@mx0.daemonmail.net> Message-ID: <004801c0d4c7$52db5460$0c00a8c0@laptop> > Can anyone enlighten me as to the origin of PPAS.BAT ? > This file is generated by the compiler and calls the external assembler and linker to create an executable out of the object code FPC creates. If this process fails, this file is left on the HD to be called by the user to complete the linking process. In your case the linker fails because of the whitespace character in your path (this is partially the fault of the command shell). If you put quotation marks in front and after the '-o' parameter it should work fine. E.g.: d:\pp\bin\win32\ldw.exe -s -b base.$$$ -o "d:\memos\rich pasco\gentable.exe" link.res Probably the compiler could be changed to do this automatically. Both the call to the linker (ldw) and the actual call to the linker should be put in quotation marks (so that fpc can be installed in directory with whitespaces in its name too). Regards, Thomas From tom_at_work at yline.com Sat May 5 13:00:17 2001 From: tom_at_work at yline.com (Thomas Schatzl) Date: Sat, 5 May 2001 13:00:17 +0200 Subject: [fpc-pascal]dos approx delay fn that releases cpu References: <593D817077A5D211A055009027285F2805E5B858@knuth.logica.co.uk> Message-ID: <005601c0d552$92400e80$0c00a8c0@laptop> Hello, > Anyone know anything better than the code below (from John Stockton's site), > comments from [fpc-devel] , which releases cpu that will work for win95 and [fpc-devel] ?? > win 2000? this is results so far from fpc developers... > > I've noticed that although this seems to work mostly in fpc dos > program under win2000 it sometimes crashes & creates an exception...Under Excerpt from the Intel docs: The HLT instruction is a privileged instruction. When the processor is running in protected or virtual-8086 mode, the privilege level of a program or procedure must be 0 to execute the HLT instruction. -> Should always exit a normal FPC program by force on NT. (It does here) NT uses that instruction in the idle process to lower CPU power consumption. W9x doesn't. Regards, Thomas From tom_at_work at yline.com Sat May 5 13:52:46 2001 From: tom_at_work at yline.com (Thomas Schatzl) Date: Sat, 5 May 2001 13:52:46 +0200 Subject: [fpc-pascal]dos approx delay fn that releases cpu References: <593D817077A5D211A055009027285F2805E5B858@knuth.logica.co.uk> Message-ID: <00ff01c0d55a$01e26100$0c00a8c0@laptop> Hi again, > > > Stockton's site) that works in tp (under win95 and on win2000) > > > and releases cpu time. Is there an equivalent that'll work in fpc? > > It may be possible to add this to the go32v2 crt unit's > > current delay function (simply add a "hlt" in both the initdelay and > > delay functions internal loop). It might cause a loss of accuracy > > though... > > _If_ we decide to add something similar to the delay unit, we should > replace the halt instruction with the DOS idle call, because that many TSRs > use this one under plain DOS and it's still supported under Wxx to lower the > CPU load. I did some tests with W2k and it seems as if the DOS idle call is not supported anymore (because it's not DOS the program is running). It might be some programming mistake too though: {delay of n ticks releasing cpu} uses go32; var timer : byte absolute $0040:$006C ; var r : registers; procedure dlay(n : integer) ; const t : byte = 0 { static! saves some stack space } ; begin while n > 0 do begin t := timer ; repeat // call DOS idle interrupt (my IR list from Ralf Brown says it's int 28h) // since the register structures' ss:sp is zero on entry the dpmi host // automatically provides a real mode stack realintr($28, r); until timer<>t ; Dec(n) ; end; end; begin // wait approx. 5 secs dlay(18*5); end. This program drives the cpu usage meter to 100% here.... it seems to me that the DOS idle call is just a more elaborate way to accomplish a 'nop'. Could anyone try with W9x ? Btw, isn't the accuracy of the delay quite bad when using the timer IR ? Because It only changes ~18.2 times per second giving a resolution of ~54 ms. The variance of the result is also quite high; +- a full timer tick depending on the spot within a timer tick the timer is read first.... Although it's usually not that serious if the default delay is off a few ms this is imho a little bit too much. Regards, Thomas From pasco at acm.org Sat May 5 16:34:30 2001 From: pasco at acm.org (Rich Pasco) Date: Sat, 5 May 2001 07:34:30 -0700 (PDT) Subject: [fpc-pascal]PPAS.BAT and directory paths with spaces in them Message-ID: <200105051434.HAA15064@mx0.daemonmail.net> Thomas Schatzl wrote: > In your case the linker fails because of the whitespace character in your > path (this is partially the fault of the command shell). If you put > quotation marks in front and after the '-o' parameter it should work fine. Yes, but how do I put quotation marks into a file that I don't write, but was written by the compiler for me? > Probably the compiler could be changed to do this automatically. That would be my request. - Rich From djg at tramontana.co.hu Sun May 6 04:45:30 2001 From: djg at tramontana.co.hu (Gabor DEAK JAHN) Date: Sun, 06 May 2001 02:45:30 +0000 Subject: [fpc-pascal]dos approx delay fn that releases cpu In-Reply-To: <00ff01c0d55a$01e26100$0c00a8c0@laptop> References: <593D817077A5D211A055009027285F2805E5B858@knuth.logica.co.uk> Message-ID: <5.0.2.1.2.20010506024034.00adcb10@pop.interware.hu> At 5/5/01 01:52 PM, you wrote: Thomas, > Btw, isn't the accuracy of the delay quite bad when using the timer IR? > Because It only changes ~18.2 times per second giving a resolution of ~54 > ms. The variance of the result is also quite high; +- a full timer tick The interrupt comes quite rare, that's true, but the timer counters count quite fast. You can measure in the range of microseconds if you read the counter value as well. There is no need to reprogram the timer to do that. Regards,    Gabor DEAK JAHN ------------------------------------------------------------------- Gabor DEAK JAHN -- Budapest, Hungary. WWW: www.tramontana.co.hu E-mail: djg at tramontana.co.hu From tom_at_work at yline.com Sun May 6 14:16:55 2001 From: tom_at_work at yline.com (Thomas Schatzl) Date: Sun, 6 May 2001 14:16:55 +0200 Subject: [fpc-pascal]dos approx delay fn that releases cpu References: <593D817077A5D211A055009027285F2805E5B858@knuth.logica.co.uk> <5.0.2.1.2.20010506024034.00adcb10@pop.interware.hu> Message-ID: <003701c0d627$65edb640$0c00a8c0@laptop> Hello, > > Btw, isn't the accuracy of the delay quite bad when using the timer IR? > > Because It only changes ~18.2 times per second giving a resolution of ~54 > > ms. The variance of the result is also quite high; +- a full timer tick > >The interrupt comes quite rare, that's true, but the timer counters count >quite fast. You can measure in the range of microseconds if you read the >counter value as well. There is no need to reprogram the timer to do that. Actually this was just meant as a side note and was not really the key point imho. Never talked about reprogramming the timer; this isn't possible under the NT-VM anyway afaik under normal circumstances (e.g. ring 3). I'm sorry if I couldn't clearly point out what my main concern was: The hlt instruction not being available with NT and int 28 (dos idle IR call) not having the desired effect too (or at least I'm not using it correctly). Example programs which demonstrate int 28h install their own int28 IR handler which issues a hlt instruction. This is not possible as I told you before, and the default handler is a 'nop'. Another IR call (Release current VM time slice, int 2Fh / 2680h) which probably would fit too doesn't work either with W2k. (It seems to be just another wonderful idea which never managed to become reality since it's a DPMI 1.0 call). Or is there any other IR / system / whatever call I don't know of ? Additionally I'm interested if my small program I posted yesterday has the desired effect under W9x systems (plain curiousity). Because if it does there it might be an argument to implement it regardless of it not working with NT. Then at least W9x could systems profit from this enhancement, can't they ? Regards, Thomas From jonathangold at usa.net Sun May 6 23:04:43 2001 From: jonathangold at usa.net (JONATHAN GOLD) Date: 6 May 2001 15:04:43 MDT Subject: [fpc-pascal]FreePascal rudely shuts down when I try to compile this particular code Message-ID: <20010506210443.2250.qmail@www0a.netaddress.usa.net> I am having an odd problem. The following code may have bugs, but I cannot tell, as this is what keeps happening: whenever I try to compile this code ( Alt + F9 ) something flashes very fast on the screen and then FreePascal abruptly closes down! (Incidentally this code is from a tutorial I am reading, though I've changed its name.) Program JustInCase (input, output); var invalid_operator : boolean; operator : char; num1, num2, result : real; begin invalid_operator := FALSE; writeln('Enter two numbers and an operator in the format'); writeln(' number1 operator number2'); readln( num1 ); readln( operator ); readln( num2 ); case operator of '*' : result := num1 * num2; '/' : result := num1 / num2; '+' : result := num1 + num2; '-' : result := num1 - num2; otherwise invalid_operator := TRUE; if invalid_operator then writeln('Invalid operator') else writeln(num1:4:2, ' ',operator,' ', num2:4:2, ' is ',result:5:2) {this line isn't wrapped on my screen} end. I have tried writing any other program, some simple calculation, and it compiles fine, giving me error messages where necessary, but it doesn't rudely shut down. But every time I try to compile the above it rudely shuts down. Is there something in this code as written that is telling it to shut down?? Thanks for any advice, Jonathan Gold jonnygee at pacbell.net ____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=1 From ckok.1 at hccnet.nl Sun May 6 23:17:24 2001 From: ckok.1 at hccnet.nl (Carlo Kok) Date: Sun, 6 May 2001 23:17:24 +0200 Subject: [fpc-pascal]FreePascal rudely shuts down when I try to compile this particular code References: <20010506210443.2250.qmail@www0a.netaddress.usa.net> Message-ID: <001d01c0d671$f270c860$0101010a@carlokok> ----- Original Message ----- From: "JONATHAN GOLD" To: Cc: Sent: Sunday, May 06, 2001 11:04 PM Subject: [fpc-pascal]FreePascal rudely shuts down when I try to compile this particular code > I am having an odd problem. The following code may have bugs, but I cannot > tell, as this is what keeps happening: whenever I try to compile this code ( > Alt + F9 ) something flashes very fast on the screen and then FreePascal > abruptly closes down! (Incidentally this code is from a tutorial I am reading, > though I've changed its name.) I don't know why it abruptly closes but: > > Program JustInCase (input, output); > var > invalid_operator : boolean; > operator : char; > num1, num2, result : real; > begin > invalid_operator := FALSE; > writeln('Enter two numbers and an operator in the format'); > writeln(' number1 operator number2'); > readln( num1 ); readln( operator ); readln( num2 ); > case operator of > '*' : result := num1 * num2; > '/' : result := num1 / num2; > '+' : result := num1 + num2; > '-' : result := num1 - num2; > otherwise invalid_operator := TRUE; Otherwise is not valid Free Pascal (afaik). It should be: Else Invalid_Operator := True; end; > if invalid_operator then > writeln('Invalid operator') > else > writeln(num1:4:2, ' ',operator,' ', num2:4:2, ' is > ',result:5:2) {this line isn't wrapped on my screen} > > end. > > > I have tried writing any other program, some simple calculation, and it > compiles fine, giving me error messages where necessary, but it doesn't rudely > shut down. But every time I try to compile the above it rudely shuts down. Is > there something in this code as written that is telling it to shut down?? > > Thanks for any advice, > > Jonathan Gold > jonnygee at pacbell.net From peter at freepascal.org Mon May 7 10:24:32 2001 From: peter at freepascal.org (Peter Vreman) Date: Mon, 7 May 2001 08:24:32 GMT Subject: [fpc-pascal]FreePascal rudely shuts down when I try to compile this particular code Message-ID: > I am having an odd problem. The following code may have bugs, but I cannot > tell, as this is what keeps happening: whenever I try to compile this code ( > Alt + F9 ) something flashes very fast on the screen and then FreePascal > abruptly closes down! (Incidentally this code is from a tutorial I am reading, > though I've changed its name.) It's a bug in the compiler that it crashes. Please try a snapshot, that should not crash. > > Program JustInCase (input, output); > var > invalid_operator : boolean; > operator : char; operator is a reserved keyword in FPC. You should replace it by some other name like 'oper' > num1, num2, result : real; > begin > invalid_operator := FALSE; > writeln('Enter two numbers and an operator in the format'); > writeln(' number1 operator number2'); > readln( num1 ); readln( operator ); readln( num2 ); > case operator of > '*' : result := num1 * num2; > '/' : result := num1 / num2; > '+' : result := num1 + num2; > '-' : result := num1 - num2; > otherwise invalid_operator := TRUE; Here a line with 'end;' is missing to terminated the case statement. > if invalid_operator then > writeln('Invalid operator') > else > writeln(num1:4:2, ' ',operator,' ', num2:4:2, ' is > ',result:5:2) {this line isn't wrapped on my screen} > > end. From ahiggs at ps.co.za Mon May 7 12:35:31 2001 From: ahiggs at ps.co.za (Andrew Higgs) Date: Mon, 07 May 2001 10:35:31 +0000 Subject: [fpc-pascal]FreePascal rudely shuts down when I try to compile this particular code References: <20010506210443.2250.qmail@www0a.netaddress.usa.net> Message-ID: <3AF67A73.3E8110AD@ps.co.za> HI Jonathan, I think it is Lazarus which is closing down abruptly not Freepascal. Have you tried to compile it by hand at the command prompt. Kind regrads Andrew Higgs JONATHAN GOLD wrote: > > I am having an odd problem. The following code may have bugs, but I cannot > tell, as this is what keeps happening: whenever I try to compile this code ( > Alt + F9 ) something flashes very fast on the screen and then FreePascal > abruptly closes down! (Incidentally this code is from a tutorial I am reading, > though I've changed its name.) From ken at cncware.com Mon May 7 19:33:07 2001 From: ken at cncware.com (Ken J. Wright) Date: Mon, 7 May 2001 10:33:07 -0700 Subject: [fpc-pascal]Problem reading "Pos1" and "End" Keys with Linux In-Reply-To: References: Message-ID: <01050710330702.01429@kenwlx> > After trying my wits with the CRT NCRT and OCRT units, I > still can not read the "Pos1" or "End" Keys from the > Terminal. All other Keys return single or double Codes just > like the old dos Terminal would with TP. > > For example the "Pos1" key returns a sequence of "#27 '[' #72" > instead of the the normal "#0 #71" > > Does someone know a way to get this to work right. Hi Stefan, I'm still a bit confused as to what terminal/keyboard you are using. > BTW: SuSE Linux 6.4 with KDE Terminal Do you mean using KDE's konsole in an X session? I don't recall what keyboard has a Pos1 key. The curses library returns long integer value for all keypress combinations, so the ncrt unit translates these into character values that readkey expects. Also ncurses handle #27 in a special way. If a keypress produces #27 followed immediately with a sequence of keys that it knows from termcap or terminfo, then this is treated as a combination and returned as a single integer value. The actual key sequence is not seen by readkey. ncrt translates a known list of possible values and drops the unknowns. This is probably what happens to your Pos1 key. Ken From marcov at stack.nl Mon May 7 20:17:59 2001 From: marcov at stack.nl (Marco van de Voort) Date: Mon, 7 May 2001 20:17:59 +0200 (CEST) Subject: [fpc-pascal]Problem reading "Pos1" and "End" Keys with Linux In-Reply-To: <01050710330702.01429@kenwlx> "from Ken J. Wright at May 7, 2001 10:33:07 am" Message-ID: <20010507181759.B7BCC9815@toad.stack.nl> > I'm still a bit confused as to what terminal/keyboard you are using. > > > BTW: SuSE Linux 6.4 with KDE Terminal > > Do you mean using KDE's konsole in an X session? I don't recall what keyboard > has a Pos1 key. E.g. German keyboards, on the spot of the "home" key. From ken at cncware.com Mon May 7 20:50:38 2001 From: ken at cncware.com (Ken J. Wright) Date: Mon, 7 May 2001 11:50:38 -0700 Subject: [fpc-pascal]Problem reading "Pos1" and "End" Keys with Linux In-Reply-To: <20010507181759.B7BCC9815@toad.stack.nl> References: <20010507181759.B7BCC9815@toad.stack.nl> Message-ID: <01050711503803.01429@kenwlx> On Monday 07 May 2001 11:17, you wrote: > > I'm still a bit confused as to what terminal/keyboard you are using. > > > > > BTW: SuSE Linux 6.4 with KDE Terminal > > > > Do you mean using KDE's konsole in an X session? I don't recall what > > keyboard has a Pos1 key. > > E.g. German keyboards, on the spot of the "home" key. Wouldn't the keycodes be the same then? Is this just an xterm key mapping problem? From LeeJ at logica.com Tue May 8 13:35:48 2001 From: LeeJ at logica.com (Lee, John) Date: Tue, 8 May 2001 12:35:48 +0100 Subject: [fpc-pascal]dos approx delay fn that releases cpu Message-ID: <593D817077A5D211A055009027285F2805E5B88E@knuth.logica.co.uk> Tried this under w95 & it works ie gives delay, but hogs the cpu! So still looking for way to do fpc dos delay, that works in w2000, NT & w9x... Current status is that my original program works ok for w9x (ie gives delay and releases cpu), but we do not have a way to do this in w2000/NT... Any more ideas? What about using the get & put interupt vector instructions to change the timer interupt to an _internal_ routine which counts clock interupts and doing a dos idle in between (believe that releases cpu in NT/w2000???). Anyone know exactly the the code for that would look...? We could then check whether it's w9x & either execute my original, or the new w2000/nt code., and we'd have a general purpose dos calleable approx delay that releases cpu... John ----Original Message----- From: Thomas Schatzl [mailto:tom_at_work at yline.com] Sent: Saturday, May 05, 2001 12:53 To: fpc-pascal at deadlock.et.tudelft.nl Subject: Re: [fpc-pascal]dos approx delay fn that releases cpu Hi again, > > > Stockton's site) that works in tp (under win95 and on win2000) > > > and releases cpu time. Is there an equivalent that'll work in fpc? > > It may be possible to add this to the go32v2 crt unit's > > current delay function (simply add a "hlt" in both the initdelay and > > delay functions internal loop). It might cause a loss of accuracy > > though... > > _If_ we decide to add something similar to the delay unit, we should > replace the halt instruction with the DOS idle call, because that many TSRs > use this one under plain DOS and it's still supported under Wxx to lower the > CPU load. I did some tests with W2k and it seems as if the DOS idle call is not supported anymore (because it's not DOS the program is running). It might be some programming mistake too though: {delay of n ticks releasing cpu} uses go32; var timer : byte absolute $0040:$006C ; var r : registers; procedure dlay(n : integer) ; const t : byte = 0 { static! saves some stack space } ; begin while n > 0 do begin t := timer ; repeat // call DOS idle interrupt (my IR list from Ralf Brown says it's int 28h) // since the register structures' ss:sp is zero on entry the dpmi host // automatically provides a real mode stack realintr($28, r); until timer<>t ; Dec(n) ; end; end; begin // wait approx. 5 secs dlay(18*5); end. This program drives the cpu usage meter to 100% here.... it seems to me that the DOS idle call is just a more elaborate way to accomplish a 'nop'. Could anyone try with W9x ? Btw, isn't the accuracy of the delay quite bad when using the timer IR ? Because It only changes ~18.2 times per second giving a resolution of ~54 ms. The variance of the result is also quite high; +- a full timer tick depending on the spot within a timer tick the timer is read first.... Although it's usually not that serious if the default delay is off a few ms this is imho a little bit too much. Regards, Thomas _______________________________________________ fpc-pascal maillist - fpc-pascal at lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal From becker at lufa-sp.vdlufa.de Tue May 8 13:52:59 2001 From: becker at lufa-sp.vdlufa.de (Stefan Becker) Date: Tue, 8 May 2001 13:52:59 +0200 Subject: [fpc-pascal]Problem reading "Pos1" and "End" Keys with Linux In-Reply-To: <01050710330702.01429@kenwlx> Message-ID: Hi again, thanks for all your input. I'm sorry if my question seems to be confusing. I am having dificulty in explaining just what is not working correctly as well as pin pointing the problem. take this programm for example: ------------------------------------------------------- program keys; uses nCrt; var ch:char; lc:char; begin WriteLn('Exit with 2 x ESC'); ch:=#0; lc:=#0; repeat while not keypressed do; lc:=ch; ch:=ReadKey; if ch=#0 then begin Write('#0 - '); lc:=ch; ch:=ReadKey; Write(ord(ch)); end else begin Write(ord(ch),' = '); if ch<#32 then Write(ord(ch)) else Write('",ch,"'); end; WriteLn; until ((ch=#27) and (lc=#27)); end. ---------------------------------------------------------- Whatever console I use to - - putty with windows to the linux server - ssh from a differant machine to the linux server - windows NT telnet to the linux server - KDE's console The results are that some keys do not return any results. or like I said the KDE-console and Putty-SSH returns: ,'[','H' sequenz for the "Home" Key on the keyboard ,'[','F' sequenz for the "End " Key on the keyboard Only if I'm on the Servers console (directly on the linux machine) does the function return the results for the & keys just as Borland and DOS would. Does this mean that the problem is within the termcap intepretation of the consoles' dialog? If yes, where is "termcap" explained? my regards and happy programming, Stefan From daworm at cdc.net Tue May 8 16:27:14 2001 From: daworm at cdc.net (Jeff Wormsley) Date: Tue, 08 May 2001 10:27:14 -0400 Subject: [fpc-pascal]Problem reading "Pos1" and "End" Keys with Linux In-Reply-To: References: Message-ID: <200105081027140409.1A396150@mail.inet75.com> On 05/08/2001 at 1:52 PM Stefan Becker wrote: >The results are that some keys do not return any results. >or like I said the KDE-console and Putty-SSH returns: > ,'[','H' sequenz for the "Home" Key on the keyboard > ,'[','F' sequenz for the "End " Key on the keyboard These look like VT100 escape sequences, which would be expected for a termcap'ed interface, rather than a direct keyboard read. Jeff. From peter at freepascal.org Tue May 8 16:57:20 2001 From: peter at freepascal.org (Peter Vreman) Date: Tue, 8 May 2001 14:57:20 GMT Subject: [fpc-pascal]Problem reading "Pos1" and "End" Keys with Message-ID: > On 05/08/2001 at 1:52 PM Stefan Becker wrote: > > >The results are that some keys do not return any results. > >or like I said the KDE-console and Putty-SSH returns: > > ,'[','H' sequenz for the "Home" Key on the keyboard > > ,'[','F' sequenz for the "End " Key on the keyboard > > These look like VT100 escape sequences, which would be expected for a termcap'ed interface, rather than a direct keyboard read. KDE-console also doesn't say anything about the keyboard mapping. The default mapping (Xfree 3.x xterm) would also not work with midnight commander and other tools. Only the XFree 4.x xterm mode works correctly. From memsom at post.interalpha.co.uk Tue May 8 17:34:28 2001 From: memsom at post.interalpha.co.uk (Full_Name) Date: Tue, 08 May 2001 16:34:28 +0100 (BST) Subject: [fpc-pascal]FreeCLX In-Reply-To: <593D817077A5D211A055009027285F2805E5B88E@knuth.logica.co.uk> References: <593D817077A5D211A055009027285F2805E5B88E@knuth.logica.co.uk> Message-ID: <989336068.3af8120409c50@post.interalpha.co.uk> Has anybody developing the FPC compiler given FreeCLX any thought?? FreeCLX is the GPL'd portion of the CLX that comes with Kylix and will come with Delphi 6. As Kylix rocks, and is Delphi language compatible, can we assume that FPC will compile and run against FreeCLX?? Is anyone thinking/working on this?? I figure it should be pretty easy, appart from the slight dialectual differences between FPC and Delphi/Kylix. Take a look at: http://sourceforge.net/projects/freeclx/ Nothing to download yet, but afaik this will be the 'hub' for the FreeCLX. I don't have the Linux version of FPC downloaded, otherwise I'd try it ;) (not enough of a masochist to try porting to windows!!) The LCL/FCL status seems to be slow,. and FreeCLX is already theoretically a fully tested product - release quality. Just thought that Lazarus could do with a kick up the arse (joke!! no flames please!!) Having used Kylix for the last few months (yes beta) I can say it currently kick Lazarus/fpc's collective Linux butt :P Matt From Michael.VanCanneyt at Wisa.be Tue May 8 22:49:29 2001 From: Michael.VanCanneyt at Wisa.be (Michael.VanCanneyt at Wisa.be) Date: Tue, 8 May 2001 22:49:29 +0200 (CEST) Subject: [fpc-pascal]FreeCLX In-Reply-To: <989336068.3af8120409c50@post.interalpha.co.uk> Message-ID: On Tue, 8 May 2001, Full_Name wrote: > Has anybody developing the FPC compiler given FreeCLX any thought?? We did. We are trying to get it to compile. > > FreeCLX is the GPL'd portion of the CLX that comes with Kylix and will come > with Delphi 6. We know. Actually, the GPL is a problem, since it explicitly forbids development of commercial applications. the FPC license does. > > As Kylix rocks, Partly, yes. But I wouldn't try to develop serious applications with it yet, given the long list of bugs and the fact that Kylix crashes still about 20 times a day. But it is definitely easier to make small apps. > and is Delphi language compatible, can we assume that FPC will > compile and run against FreeCLX?? Is anyone thinking/working on this?? I figure > it should be pretty easy, appart from the slight dialectual differences between > FPC and Delphi/Kylix. Actually, it is NOT so easy, since there are some issues: - Multithreading support of FPC is not yet finished - WideString support also is not done - Variants are not yet integrated in the language. These are the main issues, and they require some work on the compiler. > > Take a look at: http://sourceforge.net/projects/freeclx/ > > Nothing to download yet, but afaik this will be the 'hub' for the FreeCLX. You can use CVS to download the FreeCLX. I have a copy. If you look at the bug list you'll also see a series of bugs I submitted, some of them quite basic. > > I don't have the Linux version of FPC downloaded, otherwise I'd try it ;) (not > enough of a masochist to try porting to windows!!) There is no need to port this, it will run on Windows as is. Delphi 6 ships with it. (Should be available June 8) > > The LCL/FCL status seems to be slow,. Actually, there is quite some progress, just the websites are not really up-to-date. > and FreeCLX is already theoretically a fully tested product - release > quality. I beg to differ. I have extensively worked with kylix, and it is _not_ release quality. Late-stage Beta at most, but not release. What is more, many essential parts (netclx, midas, reporting tools) are missing from the commercial and free version. > > Just thought that Lazarus could do with a kick up the arse (joke!! no flames > please!!) Having used Kylix for the last few months (yes beta) I can say it > currently kick Lazarus/fpc's collective Linux butt :P I agree that development is definitely easier with Kylix. But, may I remind you that 1) Qt (the underlying building blocks of VisualCLX) is maintained since about 5-6 years by a commercial company. 2) Kylix is managed by a company with about 800 employees, of which about 50 on the R&D staff only. 3) FPC is maintained by essentially 6-7 people in their spare time. Given that, I think the comparision is not really fair. But, as I said: We're working on it, and in a year or so, we'll see who will kick who's butt, to use your words :) That said, feel free to join in, we can use some help. Michael. From memsom at interalpha.co.uk Tue May 8 22:12:14 2001 From: memsom at interalpha.co.uk (Matt Emson) Date: Tue, 8 May 2001 21:12:14 +0100 Subject: [fpc-pascal]FreeCLX References: Message-ID: <003201c0d7fb$2d369990$dee41ac3@diabolo> > > Has anybody developing the FPC compiler given FreeCLX any thought?? > > We did. We are trying to get it to compile. That's good ;) > > FreeCLX is the GPL'd portion of the CLX that comes with Kylix and will come > > with Delphi 6. > > We know. Actually, the GPL is a problem, since it explicitly forbids > development of commercial applications. the FPC license does. They have to make money somehow!! > > As Kylix rocks, > > Partly, yes. But I wouldn't try to develop serious applications with it yet, > given the long list of bugs and the fact that Kylix crashes still about 20 > times a day. But it is definitely easier to make small apps. Sorry, not seen that at all. Never had it crash on me since FT 2 or 3. The release version is stable under Mandrake 7.2. > Actually, it is NOT so easy, since there are some issues: > - Multithreading support of FPC is not yet finished > - WideString support also is not done > - Variants are not yet integrated in the language. > These are the main issues, and they require some work on the compiler. All this is planned however? FPC could be used to put FreeCLX onto platforms not yet supported by Borland (BSD etc.) > You can use CVS to download the FreeCLX. I have a copy. If you look at the > bug list you'll also see a series of bugs I submitted, some of them quite > basic. Only looked at it really quickly.. nothing in the Files section. > > The LCL/FCL status seems to be slow,. > > Actually, there is quite some progress, just the websites are not really > up-to-date. One good reason to update them then ;) > I beg to differ. I have extensively worked with kylix, and it is _not_ > release quality. Late-stage Beta at most, but not release. I'm currently using Kylix Desktop Developer - no problems at all. Not had any problems under Mandrake since FT 3 (the first one that was usable) and to be honest the release version works like a charm ;) Which distro are you using? Used Kylix under Mandrake 7.1 and 7.2.. wouldn't touch any other distro bar maybe Red Hat.. not really into sparse installers... (mind you Suse is probably better than it was last time I used it by now!) > What is more, many essential parts (netclx, midas, reporting tools) are > missing from the commercial and free version. Not missing much. A whole bunch of SOAP and XML from the press release I have read. > > Just thought that Lazarus could do with a kick up the arse (joke!! no flames > > please!!) Having used Kylix for the last few months (yes beta) I can say it > > currently kick Lazarus/fpc's collective Linux butt :P > > But, may I remind you that > 1) Qt (the underlying building blocks of VisualCLX) > is maintained since about 5-6 years by a commercial company. > 2) Kylix is managed by a company with about 800 employees, of which about > 50 on the R&D staff only. > 3) FPC is maintained by essentially 6-7 people in their spare time. There are only about 2 guys working on Delphi at any one time. More come release time, but on average two guys, for the whole product. (or so I was told by a Borland employee.) > Given that, I think the comparision is not really fair. Kylix is a commercial product that cost money to produce.. FPC is free.. It all kind of evens out in the mix ;) > But, as I said: We're working on it, and in a year or so, we'll see who > will kick who's butt, to use your words :) That's exactly what I want to hear.. though Lasarus was supposed to be kicking Delphi's butt about 2 years ago ;) (nuff said.. only messin/joking :) > That said, feel free to join in, we can use some help. Oh that I had some time!! I'd truely like to get a MacOS/BeOS port under way (PowerPC for Mac, 8086 for BeOS) but I don't have the time. I have a fairly basic 6100 powermac now, so if anyone needs a beta tester for the Mac Port.. I'm there dude!! I'm helping out on a few other projects that are PalmOS based... Hopefull they'll surface soon!!! Matt From marcov at stack.nl Tue May 8 22:42:14 2001 From: marcov at stack.nl (Marco van de Voort) Date: Tue, 8 May 2001 22:42:14 +0200 (CEST) Subject: [fpc-pascal]FreeCLX In-Reply-To: <003201c0d7fb$2d369990$dee41ac3@diabolo> "from Matt Emson at May 8, 2001 09:12:14 pm" Message-ID: <20010508204214.BE31A9815@toad.stack.nl> > > > FreeCLX is the GPL'd portion of the CLX that comes with Kylix and will > come > > > with Delphi 6. > > > > We know. Actually, the GPL is a problem, since it explicitly forbids > > development of commercial applications. the FPC license does. > > They have to make money somehow!! Yup, but we don't have to help them!!! > > Actually, it is NOT so easy, since there are some issues: > > - Multithreading support of FPC is not yet finished > > - WideString support also is not done > > - Variants are not yet integrated in the language. > > These are the main issues, and they require some work on the compiler. > > All this is planned however? Partially supported yes. > > I beg to differ. I have extensively worked with kylix, and it is _not_ > > release quality. Late-stage Beta at most, but not release. > > I'm currently using Kylix Desktop Developer - no problems at all. Not had > any problems under Mandrake since FT 3 (the first one that was usable) and > to be honest the release version works like a charm ;) Which distro are you > using? Used Kylix under Mandrake 7.1 and 7.2.. wouldn't touch any other > distro bar maybe Red Hat.. not really into sparse installers... (mind you > Suse is probably better than it was last time I used it by now!) Otherway around. And Linux is already ugly enough if you are used to BSD :-) Let alone one of the more commercial distro's :) > > But, may I remind you that > > 1) Qt (the underlying building blocks of VisualCLX) > > is maintained since about 5-6 years by a commercial company. > > 2) Kylix is managed by a company with about 800 employees, of which about > > 50 on the R&D staff only. > > 3) FPC is maintained by essentially 6-7 people in their spare time. > > There are only about 2 guys working on Delphi at any one time. More come > release time, but on average two guys, for the whole product. (or so I was > told by a Borland employee.) > > Given that, I think the comparision is not really fair. > > Kylix is a commercial product that cost money to produce.. FPC is free.. It > all kind of evens out in the mix ;) That is the problem. If we use FreeCLX, then we would be less free. If we would build something on it, nobody could do anything commercial with the result, and we would depend on Borland to decide what was commercial or not. (And RMS would be on Borlands side on that one). As a result, we can't build anything of some size on top of it, so the only reason for porting would be compiler testing. So the porting should be done (for testing and for GPL apps), but there is no real hurry, since it isn't going to be a building block. GPL is not a problem for end applications, but > > But, as I said: We're working on it, and in a year or so, we'll see who > > will kick who's butt, to use your words :) > > That's exactly what I want to hear.. though Lasarus was supposed to be > kicking Delphi's butt about 2 years ago ;) (nuff said.. only messin/joking > :) Actually, then it still was Medigo :-) But the problem is that nearly nobody has time....... From lerc at airdmhor.gen.nz Wed May 9 01:36:05 2001 From: lerc at airdmhor.gen.nz (Neil Graham) Date: Wed, 09 May 2001 11:36:05 +1200 Subject: [fpc-pascal]FreeCLX Message-ID: <3.0.32.20010509113602.0122ab40@airdmhor.gen.nz> At 10:49 PM 5/8/01 +0200, you wrote: >We know. Actually, the GPL is a problem, since it explicitly forbids >development of commercial applications. the FPC license does. This is something I have been wondering about th FPC licence. I see all of the various game basics like DarkBasic/BlitzBasic etc. and was considering doing a Pascal variant. If I were to make an IDE and code libraries designed for game making, could I sell a bundle containing these and freepascal? It would seem just a waste If I had to write a pascal compiler myself because This isn't the area I want to focus on (I'd rather be working on tools). From djg at tramontana.co.hu Tue May 8 22:36:59 2001 From: djg at tramontana.co.hu (Gabor DEAK JAHN) Date: Tue, 08 May 2001 20:36:59 +0000 Subject: [fpc-pascal]dos approx delay fn that releases cpu In-Reply-To: <593D817077A5D211A055009027285F2805E5B88E@knuth.logica.co.u k> Message-ID: <5.0.2.1.2.20010508192928.00ad9110@pop.interware.hu> At 5/8/01 12:35 PM, you wrote: John, > interupts and doing a dos idle in between (believe that releases cpu in > NT/w2000???). Anyone know exactly the code for that would look...? NT (and 2000) have a function specifically for this purpose, WaitForSingleObject (Sleep is also available but GUI programs should avoid using Sleep). This function returns if either the object is waits for becomes signaled or the timeout interval elapses. We can simply use our own thread as the object to be waited for. It will remain non-signaled while it runs, thus the timeout will prevail. The thread stays in a very efficient wait state during the delay, consuming very little processor time. The actual call would be: WaitForSingleObject (GetCurrentThread, DelayMS); Bye, Gábor ------------------------------------------------------------------- Gabor DEAK JAHN -- Budapest, Hungary. E-mail: djg at tramontana.co.hu From tom_at_work at yline.com Wed May 9 08:06:05 2001 From: tom_at_work at yline.com (Thomas Schatzl) Date: Wed, 9 May 2001 08:06:05 +0200 Subject: [fpc-pascal]dos approx delay fn that releases cpu References: <5.0.2.1.2.20010508192928.00ad9110@pop.interware.hu> Message-ID: <003c01c0d84e$2228ecd0$0b634e8c@laptop> >John, > > > interupts and doing a dos idle in between (believe that releases cpu in > > NT/w2000???). Anyone know exactly the code for that would look...? > >NT (and 2000) have a function specifically for this purpose, >WaitForSingleObject (Sleep is also available but GUI programs should avoid >using Sleep). This function returns if either the object is waits for >becomes signaled or the timeout interval elapses. We can simply use our own [....] Imho John is in search of a cpu-releasing delay routine which works for GO32V2 programs in a NT VDM. Regards, Thomas From michael.vancanneyt at wisa.be Wed May 9 09:34:28 2001 From: michael.vancanneyt at wisa.be (Michael Van Canneyt) Date: Wed, 9 May 2001 09:34:28 +0200 (W. Europe Daylight Time) Subject: [fpc-pascal]FreeCLX In-Reply-To: <3.0.32.20010509113602.0122ab40@airdmhor.gen.nz> Message-ID: On Wed, 9 May 2001, Neil Graham wrote: > At 10:49 PM 5/8/01 +0200, you wrote: > >We know. Actually, the GPL is a problem, since it explicitly forbids > >development of commercial applications. the FPC license does. > > This is something I have been wondering about th FPC licence. I see all of > the various game basics like DarkBasic/BlitzBasic etc. and was considering > doing a Pascal variant. > > If I were to make an IDE and code libraries designed for game making, could > I sell a bundle containing these and freepascal? Yes. You cannot charge for the FreePascal compiler, but you can charge for your own program. Michael. From marcov at stack.nl Wed May 9 10:02:01 2001 From: marcov at stack.nl (Marco van de Voort) Date: Wed, 9 May 2001 10:02:01 +0200 (CEST) Subject: [fpc-pascal]FreeCLX In-Reply-To: "from Michael Van Canneyt at May 9, 2001 09:34:28 am" Message-ID: <20010509080202.166A79815@toad.stack.nl> > On Wed, 9 May 2001, Neil Graham wrote: > > > At 10:49 PM 5/8/01 +0200, you wrote: > > >We know. Actually, the GPL is a problem, since it explicitly forbids > > >development of commercial applications. the FPC license does. > > > > This is something I have been wondering about th FPC licence. I see all of > > the various game basics like DarkBasic/BlitzBasic etc. and was considering > > doing a Pascal variant. > > > > If I were to make an IDE and code libraries designed for game making, could > > I sell a bundle containing these and freepascal? > > Yes. > You cannot charge for the FreePascal compiler, but you can charge for your > own program. And you cannot integrate the compiler or IDE, as that would violate the GPL, it has to remain a standalone binary. From michael.vancanneyt at wisa.be Wed May 9 10:05:20 2001 From: michael.vancanneyt at wisa.be (Michael Van Canneyt) Date: Wed, 9 May 2001 10:05:20 +0200 (W. Europe Daylight Time) Subject: [fpc-pascal]FreeCLX In-Reply-To: <003201c0d7fb$2d369990$dee41ac3@diabolo> Message-ID: On Tue, 8 May 2001, Matt Emson wrote: > > > Has anybody developing the FPC compiler given FreeCLX any thought?? > > > > We did. We are trying to get it to compile. > > That's good ;) > > > > FreeCLX is the GPL'd portion of the CLX that comes with Kylix and will > come > > > with Delphi 6. > > > > We know. Actually, the GPL is a problem, since it explicitly forbids > > development of commercial applications. the FPC license does. > > They have to make money somehow!! I will not argue with that :) > > > > As Kylix rocks, > > > > Partly, yes. But I wouldn't try to develop serious applications with it > yet, > > given the long list of bugs and the fact that Kylix crashes still about 20 > > times a day. But it is definitely easier to make small apps. > > Sorry, not seen that at all. Never had it crash on me since FT 2 or 3. The > release version is stable under Mandrake 7.2. Yesterday I had - in 1 evening - about 10 crashes, while debugging a _very_ simple program. Mostly errors occur when debugging. > > > Actually, it is NOT so easy, since there are some issues: > > - Multithreading support of FPC is not yet finished > > - WideString support also is not done > > - Variants are not yet integrated in the language. > > These are the main issues, and they require some work on the compiler. > > All this is planned however? Yes. > > FPC could be used to put FreeCLX onto platforms not yet supported by Borland > (BSD etc.) AFAIK, some german is trying to get Kylix to work on BSD. > > > You can use CVS to download the FreeCLX. I have a copy. If you look at the > > bug list you'll also see a series of bugs I submitted, some of them quite > > basic. > > Only looked at it really quickly.. nothing in the Files section. I know, you need to pull the files directly with CVS. Instructions are found on their page. > > > > The LCL/FCL status seems to be slow,. > > > > Actually, there is quite some progress, just the websites are not really > > up-to-date. > > One good reason to update them then ;) Maybe, but better do some work to get it ready first ... > > > I beg to differ. I have extensively worked with kylix, and it is _not_ > > release quality. Late-stage Beta at most, but not release. > > I'm currently using Kylix Desktop Developer - no problems at all. Not had > any problems under Mandrake since FT 3 (the first one that was usable) and > to be honest the release version works like a charm ;) Which distro are you > using? Used Kylix under Mandrake 7.1 and 7.2.. wouldn't touch any other > distro bar maybe Red Hat.. not really into sparse installers... (mind you > Suse is probably better than it was last time I used it by now!) I use SuSE 7.1, and the installer beats anything else I have seen, including various Windows versions. But that is my personal opinion. > > > What is more, many essential parts (netclx, midas, reporting tools) are > > missing from the commercial and free version. > > Not missing much. A whole bunch of SOAP and XML from the press release I > have read. Not missing much ? No reporting, No midware, no apache stuff ? This is why people would buy Kylix ! You don't need kylix for a small app with 3 edits and a memo, you need kylix for the more serious work. SOAP and XML are nice in the D6 version, but the Kylix version is far from what D5 professional/enterprise offers... > > > > Just thought that Lazarus could do with a kick up the arse (joke!! no > flames > > > please!!) Having used Kylix for the last few months (yes beta) I can say > it > > > currently kick Lazarus/fpc's collective Linux butt :P > > > > But, may I remind you that > > 1) Qt (the underlying building blocks of VisualCLX) > > is maintained since about 5-6 years by a commercial company. > > 2) Kylix is managed by a company with about 800 employees, of which about > > 50 on the R&D staff only. > > 3) FPC is maintained by essentially 6-7 people in their spare time. > > There are only about 2 guys working on Delphi at any one time. More come > release time, but on average two guys, for the whole product. (or so I was > told by a Borland employee.) This definitely conflicts with what I have _seen_ when I was at Borland. Maybe he was talking about the compiler and IDE, but the VCL needs lots of work and I doubt this can be done by 1-2 persons on average. Michael. From marcov at stack.nl Wed May 9 10:31:03 2001 From: marcov at stack.nl (Marco van de Voort) Date: Wed, 9 May 2001 10:31:03 +0200 (CEST) Subject: [fpc-pascal]FreeCLX In-Reply-To: "from Michael Van Canneyt at May 9, 2001 10:05:20 am" Message-ID: <20010509083103.33C779815@toad.stack.nl> > > > > FPC could be used to put FreeCLX onto platforms not yet supported by Borland > > (BSD etc.) > > AFAIK, some german is trying to get Kylix to work on BSD. With the Linux emulation probably, not native I think. From memsom at post.interalpha.co.uk Wed May 9 11:21:28 2001 From: memsom at post.interalpha.co.uk (Full_Name) Date: Wed, 09 May 2001 10:21:28 +0100 (BST) Subject: [fpc-pascal]FreeCLX In-Reply-To: References: Message-ID: <989400088.3af90c18224f3@post.interalpha.co.uk> Quoting Michael Van Canneyt : > > FPC could be used to put FreeCLX onto platforms not yet supported by > Borland > > (BSD etc.) > > AFAIK, some german is trying to get Kylix to work on BSD. Now that I'd like to se.. Solaris too. > > > > > You can use CVS to download the FreeCLX. I have a copy. If you look > at the > > > bug list you'll also see a series of bugs I submitted, some of them > quite > > > basic. > > > > Only looked at it really quickly.. nothing in the Files section. > > I know, you need to pull the files directly with CVS. Instructions are > found > on their page. Did it last night. The bug list isn't too high!!??!! I've seen much worse, believe me!! ;) > Maybe, but better do some work to get it ready first ... The more info the better to be honest ;) > I use SuSE 7.1, and the installer beats anything else I have seen, > including > various Windows versions. But that is my personal opinion. Mandrakes installer beats suse.. at least the last suse I used. > Not missing much ? No reporting, No midware, no apache stuff ? This is > why people would buy Kylix ! You don't need kylix for a small app with > 3 edits and a memo, you need kylix for the more serious work. You get the server edition for all that stuff.. To be honest, giving away the DB controls with the basic version is 'very unlike Borland'. > SOAP and XML are nice in the D6 version, but the Kylix version is far > from what > D5 professional/enterprise offers... I had this discussion the other day with a fellow co-worker. What's the point in having slick technologically advanced controls if the compiler sucks?? I'd rather get a rock solid compiler and IDE before I get a whole lot of extra stuff on top. As for your crashes.. The Borland released GlibC patches are notoriously bad. Did you try the official ones from Suse? A lot of the crashes go onece you do so. > This definitely conflicts with what I have _seen_ when I was at > Borland. > Maybe he was talking about the compiler and IDE, but the VCL needs lots > of work and I doubt this can be done by 1-2 persons on average. But the VCL/CLX is common across the C++ Builder/Delphi/Kylix toolset, so that doesn't really count as pure *Delphi* development. Matt From jonas at zeus.rug.ac.be Wed May 9 12:39:18 2001 From: jonas at zeus.rug.ac.be (Jonas) Date: Wed, 9 May 2001 12:39:18 +0200 Subject: [fpc-pascal]FreeCLX In-Reply-To: <3.0.32.20010509113602.0122ab40@airdmhor.gen.nz> Message-ID: <200105091039.MAA12087@eduserv2.rug.ac.be> On woensdag, mei 9, 2001, at 01:36 , Neil Graham wrote: >> We know. Actually, the GPL is a problem, since it explicitly forbids >> development of commercial applications. the FPC license does. The GPL doesn't forbid the writing of commercial programs, but of closed source programs. That's not the same (there are plenty of free closed source programs, though the reverse doesn't happen that much). > If I were to make an IDE and code libraries designed for game making, > could > I sell a bundle containing these and freepascal? You libraries would be no problem, but the IDE is something else. The GPL says that all "derived" works of a GPL'd piece of code have to be released under the GPL as well. The problem is that no-one really knows what is derived and what not. That's one of the reasons why Apple includes no *crucial* GPL'd tools with Mac OS X. Otherwise, RMS could decide that because for the OS to be able to function, it requires some piece of GPL'd code, that the whole OS falls under the GPL... Personally, I wouldn't mind at all if someone would write a closed source IDE for FPC (and I don't think anyone else would either, in fact, I think there are already some), it's just that GPL is very viral in nature and that you have to be careful for open source fanatics in this regard... And as I said, the "derived" part is not strictly defined anywhere, so it's very well possible to interpret it so that an IDE which doesn't share any code with the compiler isn't a derived work. Jonas From LeeJ at logica.com Wed May 9 12:40:14 2001 From: LeeJ at logica.com (Lee, John) Date: Wed, 9 May 2001 11:40:14 +0100 Subject: [fpc-pascal]dos approx delay fn that releases cpu Message-ID: <593D817077A5D211A055009027285F2805E5B894@knuth.logica.co.uk> 100% right Thomas, I know about sleep etc for win32, but want simliar fpc dos routine that'll work for w9x, NT & w2000. For reasons won't go into here (but related to file opening difficulties for locked files in fpc win32) I can't use a win32 fpc program! -----Original Message----- From: Thomas Schatzl [mailto:tom_at_work at yline.com] Sent: 09 May 2001 07:06 To: fpc-pascal at deadlock.et.tudelft.nl Subject: Re: [fpc-pascal]dos approx delay fn that releases cpu >John, > > > interupts and doing a dos idle in between (believe that releases cpu in > > NT/w2000???). Anyone know exactly the code for that would look...? > >NT (and 2000) have a function specifically for this purpose, >WaitForSingleObject (Sleep is also available but GUI programs should avoid >using Sleep). This function returns if either the object is waits for >becomes signaled or the timeout interval elapses. We can simply use our own [....] Imho John is in search of a cpu-releasing delay routine which works for GO32V2 programs in a NT VDM. Regards, Thomas _______________________________________________ fpc-pascal maillist - fpc-pascal at lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal From pasco at acm.org Wed May 9 16:20:37 2001 From: pasco at acm.org (Rich Pasco) Date: Wed, 9 May 2001 07:20:37 -0700 (PDT) Subject: [fpc-pascal]dos approx delay fn that releases cpu Message-ID: <200105091420.HAA68990@mx0.daemonmail.net> "Lee, John" wrote: > 100% right Thomas, I know about sleep etc for win32, but want simliar fpc > dos routine that'll work for w9x, NT & w2000. I routinely use programs compiled for w32 under Windows 98, NT 4.0, and Windows 2000 with no trouble whatsoever. > For reasons won't go into > here (but related to file opening difficulties for locked files in fpc > win32) I can't use a win32 fpc program! Perhaps this is the problem area you should be addressing, rather than trying to find a sleep/delay procedure for GO32V2. - Rich From michael.vancanneyt at wisa.be Wed May 9 17:08:44 2001 From: michael.vancanneyt at wisa.be (Michael Van Canneyt) Date: Wed, 9 May 2001 17:08:44 +0200 (W. Europe Daylight Time) Subject: [fpc-pascal]dos approx delay fn that releases cpu In-Reply-To: <200105091420.HAA68990@mx0.daemonmail.net> Message-ID: On Wed, 9 May 2001, Rich Pasco wrote: > "Lee, John" wrote: > > > 100% right Thomas, I know about sleep etc for win32, but want simliar fpc > > dos routine that'll work for w9x, NT & w2000. > > I routinely use programs compiled for w32 under Windows 98, NT 4.0, > and Windows 2000 with no trouble whatsoever. > > > For reasons won't go into > > here (but related to file opening difficulties for locked files in fpc > > win32) I can't use a win32 fpc program! > > Perhaps this is the problem area you should be addressing, rather than > trying to find a sleep/delay procedure for GO32V2. I also think this should be addressed then, instead of some ad-hoc patch. If you can explain (preferably with some example code) the probles you're having with locked files, maybe we can try to solve them. Michael. From jonas at zeus.rug.ac.be Wed May 9 17:32:00 2001 From: jonas at zeus.rug.ac.be (Jonas) Date: Wed, 9 May 2001 17:32:00 +0200 Subject: [fpc-pascal]dos approx delay fn that releases cpu In-Reply-To: Message-ID: <200105091532.RAA19674@eduserv2.rug.ac.be> On woensdag, mei 9, 2001, at 05:08 , Michael Van Canneyt wrote: >> Perhaps this is the problem area you should be addressing, rather than >> trying to find a sleep/delay procedure for GO32V2. > > I also think this should be addressed then, instead of some ad-hoc > patch. > If you can explain (preferably with some example code) the probles > you're > having with locked files, maybe we can try to solve them. The problem is that Windows keeps a lock on a file for a few seconds after a (Win32) program has released it, that's all. It's an OS bug/feature, I don't think you can work around it in your program (except for always trying during 2 seconds or so to open a file before giving up, but that's not very nice) Jonas From michael.vancanneyt at wisa.be Wed May 9 17:56:52 2001 From: michael.vancanneyt at wisa.be (Michael Van Canneyt) Date: Wed, 9 May 2001 17:56:52 +0200 (W. Europe Daylight Time) Subject: [fpc-pascal]dos approx delay fn that releases cpu In-Reply-To: <200105091532.RAA19674@eduserv2.rug.ac.be> Message-ID: On Wed, 9 May 2001, Jonas wrote: > > On woensdag, mei 9, 2001, at 05:08 , Michael Van Canneyt wrote: > > >> Perhaps this is the problem area you should be addressing, rather than > >> trying to find a sleep/delay procedure for GO32V2. > > > > I also think this should be addressed then, instead of some ad-hoc > > patch. > > If you can explain (preferably with some example code) the probles > > you're > > having with locked files, maybe we can try to solve them. > > The problem is that Windows keeps a lock on a file for a few seconds > after a (Win32) program has released it, that's all. It's an OS > bug/feature, I don't think you can work around it in your program > (except for always trying during 2 seconds or so to open a file before > giving up, but that's not very nice) ? But don't dos programs have the same problem then when running under windows? Michael. From jonas at zeus.rug.ac.be Wed May 9 18:39:55 2001 From: jonas at zeus.rug.ac.be (Jonas) Date: Wed, 9 May 2001 18:39:55 +0200 Subject: [fpc-pascal]dos approx delay fn that releases cpu In-Reply-To: Message-ID: <200105091639.SAA04977@eduserv2.rug.ac.be> On woensdag, mei 9, 2001, at 05:56 , Michael Van Canneyt wrote: >> The problem is that Windows keeps a lock on a file for a few seconds >> after a (Win32) program has released it, that's all. It's an OS >> bug/feature, I don't think you can work around it in your program >> (except for always trying during 2 seconds or so to open a file before >> giving up, but that's not very nice) > > ? But don't dos programs have the same problem then when running under > windows? Apparently not (I assume that otherwise John wouldn't be asking this :) Jonas From LeeJ at logica.com Wed May 9 19:01:54 2001 From: LeeJ at logica.com (Lee, John) Date: Wed, 9 May 2001 18:01:54 +0100 Subject: [fpc-pascal]w2000 file opening - was dos approx delay fn that releases cpu Message-ID: <593D817077A5D211A055009027285F2805E5B89E@knuth.logica.co.uk> I was intending to address the file issue later when I'd got my dos program working - which it is now but using a work around & doing an exec of 4nt sleep-horrible but until I get dos delay working the best I can do. Another reason for using dos is that a dos program sems to be more efficient using less cpu overhead...but I'd be happy to use win32 if it'd work! Anyway talking w2000 here...& I'm opening a file for read every 2 seconds that is created by the nt/w2000 performance log service...I can open it & read it ok in fpc go32 ok... but I get an access error in fpc win32 program...but it'd be good to have a proper dos calleable delay that releases cpu anyway imo, that's why I'm trying to find/make one! -----Original Message----- From: Michael Van Canneyt [mailto:michael.vancanneyt at wisa.be] Sent: Wednesday, May 09, 2001 04:57 To: fpc-pascal at deadlock.et.tudelft.nl Subject: Re: [fpc-pascal]dos approx delay fn that releases cpu On Wed, 9 May 2001, Jonas wrote: > > On woensdag, mei 9, 2001, at 05:08 , Michael Van Canneyt wrote: > > >> Perhaps this is the problem area you should be addressing, rather than > >> trying to find a sleep/delay procedure for GO32V2. > > > > I also think this should be addressed then, instead of some ad-hoc > > patch. > > If you can explain (preferably with some example code) the probles > > you're > > having with locked files, maybe we can try to solve them. > > The problem is that Windows keeps a lock on a file for a few seconds > after a (Win32) program has released it, that's all. It's an OS > bug/feature, I don't think you can work around it in your program > (except for always trying during 2 seconds or so to open a file before > giving up, but that's not very nice) ? But don't dos programs have the same problem then when running under windows? Michael. _______________________________________________ fpc-pascal maillist - fpc-pascal at lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal From James_Wilson at i2.com Wed May 9 19:33:33 2001 From: James_Wilson at i2.com (James_Wilson at i2.com) Date: Wed, 9 May 2001 13:33:33 -0400 Subject: [fpc-pascal]w2000 file opening - was dos approx delay fn that releases cpu Message-ID: > read it ok in fpc go32 ok... but I get an access error in fpc win32 > program. Try opening it with filemode:=$40. Perhaps the win32 problem is with access rights. Jim From LeeJ at logica.com Wed May 9 20:03:08 2001 From: LeeJ at logica.com (Lee, John) Date: Wed, 9 May 2001 19:03:08 +0100 Subject: [fpc-pascal]w2000 file opening - was dos approx delay fn that releases cpu Message-ID: <593D817077A5D211A055009027285F2805E5B8A0@knuth.logica.co.uk> I was told to use filemode=0... but it didn't make any difference! What are exactly are useful values for filemode & what does each do? NB Not in documentation? eg as part of reset info? -----Original Message----- From: James_Wilson at i2.com [mailto:James_Wilson at i2.com] Sent: Wednesday, May 09, 2001 06:34 To: fpc-pascal at deadlock.et.tudelft.nl Subject: Re: [fpc-pascal]w2000 file opening - was dos approx delay fn that releases cpu > read it ok in fpc go32 ok... but I get an access error in fpc win32 > program. Try opening it with filemode:=$40. Perhaps the win32 problem is with access rights. Jim _______________________________________________ fpc-pascal maillist - fpc-pascal at lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal From James_Wilson at i2.com Wed May 9 20:30:38 2001 From: James_Wilson at i2.com (James_Wilson at i2.com) Date: Wed, 9 May 2001 14:30:38 -0400 Subject: [fpc-pascal]w2000 file opening - was dos approx delay fn that releases cpu Message-ID: > I was told to use filemode=0... but it didn't make any difference! > What are exactly are useful values for filemode & what does each > do? NB Not in documentation? eg as part of reset info? filemode:=0 is okay for DOS programs, but not necessarily so for Win32 programs. I had a similar problem before and filemode:=$40 seemed to cure a lot of the "access denied" errors I was getting with a filefind utility I wrote. Perhaps that's the only problem with your program as well. I wish I could be more help about the rest of the filemode settings for Win32, but unfortunately I don't recall where I got that info from. Sorry. Jim From djg at tramontana.co.hu Wed May 9 21:36:42 2001 From: djg at tramontana.co.hu (Gabor DEAK JAHN) Date: Wed, 09 May 2001 19:36:42 +0000 Subject: [fpc-pascal]dos approx delay fn that releases cpu In-Reply-To: <200105091532.RAA19674@eduserv2.rug.ac.be> References: Message-ID: <5.0.2.1.2.20010509192753.00ab6270@pop.interware.hu> At 5/9/01 05:32 PM, you wrote: Jonas, > The problem is that Windows keeps a lock on a file for a few seconds after a > (Win32) program has released it, that's all. It's an OS bug/feature, Could you provide an example program? I tried running several programs on NT 4 now, observing all the handles they keep open (using HandleEx from SysInternals) and their release was instantaneous as I closed the programs themselves. I have written a program some time ago where two EXEs were communicating through DDE and using a common file for passing data in one direction and results or error messages in the other. As soon as Program 1 wrote the data to be processed, closed the file and notified Program 2 to start processing, the second opened the file and started to work immediately. During the two seconds you mentioned, hundreds if not thousands of such file close-reopen operations were made, without any need to wait. Bye, Gábor ------------------------------------------------------------------- Gabor DEAK JAHN -- Budapest, Hungary. E-mail: djg at tramontana.co.hu From djg at tramontana.co.hu Thu May 10 04:18:42 2001 From: djg at tramontana.co.hu (Gabor DEAK JAHN) Date: Thu, 10 May 2001 02:18:42 +0000 Subject: [fpc-pascal]w2000 file opening - was dos approx delay fn that releases cpu In-Reply-To: Message-ID: <5.0.2.1.2.20010510020723.00ad1a20@pop.interware.hu> At 5/9/01 02:30 PM, you wrote: Jim > I wish I could be more help about the rest of the filemode settings for > Win32, but unfortunately I don't recall where I got that info from. Sorry. From the file Win32.inc: fmShareCompat = $00000000; fmShareExclusive = $10; fmShareDenyWrite = $20; fmShareDenyRead = $30; fmShareDenyNone = $40; If you check out Syswin32.pp from the RTL source (procedure Do_Open), you'll see that the single Filemode value passed on by routines like Reset or Rewrite will not be used directly but dissected into several flags and then fed to the appropriate Win32 routines. I didn't check if every possible value and flag is handled by the FPC RTL or not, but you can always call the Win32 file I/O functions directly, providing whatever flag you want. The MSDN documentation of CreateFile has a description of all flags accepted by Win32. Bye, Gábor ------------------------------------------------------------------- Gabor DEAK JAHN -- Budapest, Hungary. E-mail: djg at tramontana.co.hu From LeeJ at logica.com Thu May 10 18:44:17 2001 From: LeeJ at logica.com (Lee, John) Date: Thu, 10 May 2001 17:44:17 +0100 Subject: [fpc-pascal]filemode info for fpc docn - was w2000 file opening Message-ID: <593D817077A5D211A055009027285F2805E5B8A5@knuth.logica.co.uk> thanks for this info... Yup filemode equals $40 fixes my win 2000 access problem to a win2000 performance log...- I was originally advised to use 0 in [devel]! IMO one shouldn't need to look at the source...the info below should go into docn, under reset/rewrite + short explanation of filemode 'To open files which may be open and used by other processes filemode can be used. THE DEFAULT SETTING IS ??? It can be set to the following values, dependent on the operating system...' Don't think filemode does anything under Dos. Does filemode do anything for unix/linux/m68k? What values are appropriate? If so can this be explained too...TIA J -----Original Message----- From: Gabor DEAK JAHN [mailto:djg at tramontana.co.hu] Sent: Thursday, May 10, 2001 03:19 To: fpc-pascal at deadlock.et.tudelft.nl Subject: RE: [fpc-pascal]w2000 file opening - was dos approx delay fn that releases cpu At 5/9/01 02:30 PM, you wrote: Jim > I wish I could be more help about the rest of the filemode settings for > Win32, but unfortunately I don't recall where I got that info from. Sorry. From the file Win32.inc: fmShareCompat = $00000000; fmShareExclusive = $10; fmShareDenyWrite = $20; fmShareDenyRead = $30; fmShareDenyNone = $40; If you check out Syswin32.pp from the RTL source (procedure Do_Open), you'll see that the single Filemode value passed on by routines like Reset or Rewrite will not be used directly but dissected into several flags and then fed to the appropriate Win32 routines. I didn't check if every possible value and flag is handled by the FPC RTL or not, but you can always call the Win32 file I/O functions directly, providing whatever flag you want. The MSDN documentation of CreateFile has a description of all flags accepted by Win32. Bye, G�bor ------------------------------------------------------------------- Gabor DEAK JAHN -- Budapest, Hungary. E-mail: djg at tramontana.co.hu _______________________________________________ fpc-pascal maillist - fpc-pascal at lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal From James_Wilson at i2.com Thu May 10 19:51:30 2001 From: James_Wilson at i2.com (James_Wilson at i2.com) Date: Thu, 10 May 2001 13:51:30 -0400 Subject: [fpc-pascal]filemode info for fpc docn - was w2000 file opening Message-ID: > Don't think filemode does anything under Dos. filemode does have an effect for DOS as well, but the number of modes (and some of the corresponding settings) are different. AAMOF, there are differences for the ioresult return codes from open(), reset(), rewrite(), etc. Jim From LeeJ at logica.com Fri May 11 12:59:38 2001 From: LeeJ at logica.com (Lee, John) Date: Fri, 11 May 2001 11:59:38 +0100 Subject: [fpc-pascal]RE: filemode info for fpc docn - was w2000 file opening Message-ID: <593D817077A5D211A055009027285F2805E5B8A9@knuth.logica.co.uk> It'd be best if we could have something that's o/s independent... but I accept, based on the comments, that this might be difficult (see my 0.001 euro worth below). Until we can do this tho' my main reason for raising this is to simply document what the choices are for each o/s...& I guess that isn't too difficult. Maybe instead of trying to adapt things we could just have a normal open (0 as at present) and a 'try to open whatever eg whether file locked or not' value eg as another variable say called, say, force_open, (eg 1) which are same value for all o/s & wouldtherefore be portable...Eg for win32 this could translate to the current filemode vals of 0 and $40, for linux whatever. If users want more sophisticated behaviour we'd tell users to use the appropriate o/s dependent filemode values directly... From: Michael.VanCanneyt at Wisa.be Sent: Friday, May 11, 2001 01:24 To: core at freepascal.org Subject: Re: filemode info for fpc docn - was w2000 file opening On Thu, 10 May 2001, Marco van de Voort wrote: > > On Thu, 10 May 2001, Marco van de Voort wrote: > > > > > > > thanks for this info... > > > > > > > > > > Yup filemode equals $40 fixes my win 2000 access problem to a win2000 > > > > > performance log...- I was originally advised to use 0 in [devel]! > > > > > > > > > > IMO one shouldn't need to look at the source...the info below should go into > > > > > docn, under reset/rewrite + short explanation of filemode 'To open files > > > > > which may be open and used by other processes filemode can be used. THE > > > > > DEFAULT SETTING IS ??? It can be set to the following values, dependent on > > > > > the operating system...' > > > > > > > > > > Don't think filemode does anything under Dos. > > > > > > > > It does something under all platforms, just the values it accepts are > > > > different under each platform. > > > > > > > > I've added this to my todo list, though. > > > > > > Do you intend to solve it via a series of constants, or conversion of the > > > value in the functions that use FileMode? > > > > > > > I don't intend to do anything in the RTL, I plan to mention it in the docs > > :) > > > > Do you think this should be treated on a RTL level ? Even Kylix doesn't > > do that. (simply not possible, I think) > > Why not ? We can introduce fmxxx like constants for filemode variable too on > a per platform basis? yes, but what are these constants and what if some constant has no meaning on some platform ? fmShareDenyNone or something has no meaning on Linux. > It won't be perfect, but it will make keeping targets source compatible with > eachother easier. I know; I haven't really decided for myself what it's going to be. Michael. From peter at freepascal.org Fri May 11 14:13:35 2001 From: peter at freepascal.org (Peter Vreman) Date: Fri, 11 May 2001 12:13:35 GMT Subject: [fpc-pascal]RE: filemode info for fpc docn - was w2000 file opening Message-ID: > It'd be best if we could have something that's o/s independent... but I > accept, based on the comments, that this might be difficult (see my 0.001 > euro worth below). Until we can do this tho' my main reason for raising this > is to simply document what the choices are for each o/s...& I guess that > isn't too difficult. > > Maybe instead of trying to adapt things we could just have a normal open (0 > as at present) and a 'try to open whatever eg whether file locked or not' > value eg as another variable say called, say, force_open, (eg 1) which are > same value for all o/s & wouldtherefore be portable...Eg for win32 this > could translate to the current filemode vals of 0 and $40, for linux > whatever. If users want more sophisticated behaviour we'd tell users to use > the appropriate o/s dependent filemode values directly... Why do we need a new way? The current filemode values all support opening modes correctly. The only missing thing for easier accessing are the fm constants in the system unit. I don't have tp here so i can't check the tp7 rtl for it. For delphi/kylix they are defined in Sysutils From daworm at cdc.net Fri May 11 14:35:04 2001 From: daworm at cdc.net (Jeff Wormsley) Date: Fri, 11 May 2001 08:35:04 -0400 Subject: [fpc-pascal]RE: filemode info for fpc docn - was w2000 file opening In-Reply-To: References: Message-ID: <200105110835040113.2945C316@mail.inet75.com> On 05/11/2001 at 12:13 PM Peter Vreman wrote: >Why do we need a new way? The current filemode values all support opening modes >correctly. > >The only missing thing for easier accessing are the fm constants in the system unit. >I don't have tp here so i can't check the tp7 rtl for it. For delphi/kylix they are >defined in Sysutils In BP7, there is this: { File mode magic numbers } fmClosed = $D7B0; fmInput = $D7B1; fmOutput = $D7B2; fmInOut = $D7B3; This what you are looking for? From LeeJ at logica.com Fri May 11 15:00:25 2001 From: LeeJ at logica.com (Lee, John) Date: Fri, 11 May 2001 14:00:25 +0100 Subject: [fpc-pascal]RE: filemode info for fpc docn - was w2000 file o pening Message-ID: <593D817077A5D211A055009027285F2805E5B8AC@knuth.logica.co.uk> I was trying to suggest a new way that is o/s independent... -----Original Message----- From: Peter Vreman [mailto:peter at freepascal.org] Sent: Friday, May 11, 2001 01:14 To: fpc-pascal at deadlock.et.tudelft.nl Subject: Re: [fpc-pascal]RE: filemode info for fpc docn - was w2000 file opening > It'd be best if we could have something that's o/s independent... but I > accept, based on the comments, that this might be difficult (see my 0.001 > euro worth below). Until we can do this tho' my main reason for raising this > is to simply document what the choices are for each o/s...& I guess that > isn't too difficult. > > Maybe instead of trying to adapt things we could just have a normal open (0 > as at present) and a 'try to open whatever eg whether file locked or not' > value eg as another variable say called, say, force_open, (eg 1) which are > same value for all o/s & wouldtherefore be portable...Eg for win32 this > could translate to the current filemode vals of 0 and $40, for linux > whatever. If users want more sophisticated behaviour we'd tell users to use > the appropriate o/s dependent filemode values directly... Why do we need a new way? The current filemode values all support opening modes correctly. The only missing thing for easier accessing are the fm constants in the system unit. I don't have tp here so i can't check the tp7 rtl for it. For delphi/kylix they are defined in Sysutils _______________________________________________ fpc-pascal maillist - fpc-pascal at lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal From peter at freepascal.org Fri May 11 16:10:50 2001 From: peter at freepascal.org (Peter Vreman) Date: Fri, 11 May 2001 14:10:50 GMT Subject: [fpc-pascal]RE: filemode info for fpc docn - was w2000 file o Message-ID: > I was trying to suggest a new way that is o/s independent... The current way is o/s independent! So i don't see why a new way should be created. It'll make things only more incompatible and complex. > > -----Original Message----- > From: Peter Vreman [mailto:peter at freepascal.org] > Sent: Friday, May 11, 2001 01:14 > To: fpc-pascal at deadlock.et.tudelft.nl > Subject: Re: [fpc-pascal]RE: filemode info for fpc docn - was w2000 file > opening > > > > It'd be best if we could have something that's o/s independent... but I > > accept, based on the comments, that this might be difficult (see my 0.001 > > euro worth below). Until we can do this tho' my main reason for raising > this > > is to simply document what the choices are for each o/s...& I guess that > > isn't too difficult. > > > > Maybe instead of trying to adapt things we could just have a normal open > (0 > > as at present) and a 'try to open whatever eg whether file locked or not' > > value eg as another variable say called, say, force_open, (eg 1) which are > > same value for all o/s & wouldtherefore be portable...Eg for win32 this > > could translate to the current filemode vals of 0 and $40, for linux > > whatever. If users want more sophisticated behaviour we'd tell users to > use > > the appropriate o/s dependent filemode values directly... > > Why do we need a new way? The current filemode values all support opening > modes > correctly. > > The only missing thing for easier accessing are the fm constants in > the system unit. > I don't have tp here so i can't check the tp7 rtl for it. For delphi/kylix > they are > defined in Sysutils > > > > > > > _______________________________________________ > fpc-pascal maillist - fpc-pascal at lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > > _______________________________________________ > fpc-pascal maillist - fpc-pascal at lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal From irixhu at externet.hu Fri May 11 19:35:34 2001 From: irixhu at externet.hu (Boci) Date: Fri, 11 May 2001 19:35:34 +0200 (CEST) Subject: [fpc-pascal]FreeBSD + GTK : error In-Reply-To: <593D817077A5D211A055009027285F2805E5B8A9@knuth.logica.co.uk> Message-ID: <20010511192833.B647-100000@boci.ktm.hu> Hello! A long time ago.... I found error on the GTK unit over FreeBSD. I thinking much more, and I found the solution. I rewrite in the source of the FreeBSD/GTK unit gtk/gtk.pp and gdk/gdk.pp: gdkdll='gdk' -> gdkdll='gdk12' and gtkdll='gtk' -> gtkdll='gtk12' Please correct this error on the FreePascal 1.0.4/FreeBSD distribution. Thanx : Boci ps: after this little modification the FreePascal work very well :)))) From shurd at sk.sympatico.ca Fri May 11 21:05:53 2001 From: shurd at sk.sympatico.ca (Stephen Hurd) Date: Fri, 11 May 2001 13:05:53 -0600 Subject: [fpc-pascal]FreeBSD + GTK : error In-Reply-To: <20010511192833.B647-100000@boci.ktm.hu> Message-ID: I rewrite in the source of the FreeBSD/GTK unit gtk/gtk.pp and gdk/gdk.pp: gdkdll='gdk' -> gdkdll='gdk12' and gtkdll='gtk' -> gtkdll='gtk12' Actually, this is a common thing on FreeBSD platforms... not unique to FreePascal. What I did was create symlinks. _______________________________________________ fpc-pascal maillist - fpc-pascal at lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal From XHajT03 at mbox.vol.cz Sun May 13 18:27:03 2001 From: XHajT03 at mbox.vol.cz (XHajT03 at mbox.vol.cz) Date: Sun, 13 May 2001 18:27:03 +0200 Subject: [fpc-pascal]RE: filemode info for fpc docn - was w2000 file o In-Reply-To: Message-ID: <200105131626.f4DGQQc61066@smtp3.vol.cz> To: fpc-pascal at deadlock.et.tudelft.nl From: Peter Vreman Subject: RE: [fpc-pascal]RE: filemode info for fpc docn - was w2000 file o Date sent: Fri, 11 May 2001 14:10:50 GMT Send reply to: fpc-pascal at deadlock.et.tudelft.nl > > I was trying to suggest a new way that is o/s independent... > > The current way is o/s independent! So i don't see why a new way > should be created. It'll make things only more incompatible and > complex. It isn't fully OS independent, in fact, because FileMode constants don't have the same meaning on all supported platforms. The trouble John is having is probably caused by the fact that DOS with SHARE.EXE loaded (which is simulated by all VDMs) uses sharing mode of 0 (i.e. none sharing mode specified) as the so-called "compatibility mode" with basically the same behaviour as "deny none", whereas you have to use a specific (different) sharing mode number on other targets (including Win32 and OS/2) for this. We could probably add a workaround for this to do_open, the question is, whether we want to do so (it would break compatibility with previous releases, among other things). Tomas From irixhu at externet.hu Mon May 14 20:14:49 2001 From: irixhu at externet.hu (Boci) Date: Mon, 14 May 2001 20:14:49 +0200 (CEST) Subject: [fpc-pascal]1.0.5 Message-ID: <20010514201220.R820-100000@boci.ktm.hu> Hello! I have a big question. When come out the 1.0.5 Release? (I want to use thread, I hope the new release constaint this :))))) (I try to use the pthread unit but it crashed on the FreeBSD 4.3) Boci From peter at freepascal.org Tue May 15 10:01:49 2001 From: peter at freepascal.org (Peter Vreman) Date: Tue, 15 May 2001 08:01:49 GMT Subject: [fpc-pascal]1.0.5 Message-ID: > Hello! > I have a big question. > When come out the 1.0.5 Release? > (I want to use thread, I hope the new release constaint this :))))) > (I try to use the pthread unit but it crashed on the FreeBSD 4.3) 1.0.5 is the development version, the next release will be called 1.0.6. This release will only contain fixes and no new features. So no thread support. Thread support is planned for 1.2, but still needs some decisions how we are going to implement and distribute it. From marcov at stack.nl Tue May 15 10:45:13 2001 From: marcov at stack.nl (Marco van de Voort) Date: Tue, 15 May 2001 10:45:13 +0200 (CEST) Subject: [fpc-pascal]1.0.5 In-Reply-To: "from Peter Vreman at May 15, 2001 08:01:49 am" Message-ID: <20010515084513.B614B97DF@toad.stack.nl> > > Hello! > > I have a big question. > > When come out the 1.0.5 Release? > > (I want to use thread, I hope the new release constaint this :))))) > > (I try to use the pthread unit but it crashed on the FreeBSD 4.3) > > 1.0.5 is the development version, the next release will be called 1.0.6. This release will > only contain fixes and no new features. So no thread support. > > Thread support is planned for 1.2, but still needs some decisions how we are going to > implement and distribute it. A snapshot for 1.0.5 is downloadable from the FTP site. Contrary to the other platforms, for FreeBSD it is advised to use the snapshot over the release version. The pthread unit from the contributed webpage was never tested with FreeBSD, but when you do it, don't forget to install the LinuxThreads port, since pthreads probably interfaces to THAT package, not to FreeBSD kernel based threading. Moreover I ported the Linux emulator code of the Linux CLONE function to FPC, and it is supplied as linux.clone (unit linux, function clone). This because the FCL threading is based on it. This however hasn't been tested well. From jovy at wanadoo.es Tue May 15 11:31:29 2001 From: jovy at wanadoo.es (jordi) Date: Tue, 15 May 2001 11:31:29 +0200 Subject: [fpc-pascal]execl Message-ID: <3B00F771.4D31A343@wanadoo.es> I'd like to know why after a sentence like this : if paramstr (1) = '-h' then begin execl ('/usr/bin/man manual.page'); halt (); end; the terminal does not work more. How can I restore the terminal ?? Thanks. -- Salutacions. Jordi. http://perso.wanadoo.es/jovy mailto:jovy at wanadoo.es From arneh at enitel.no Tue May 15 12:02:39 2001 From: arneh at enitel.no (Arne Hanssen) Date: Tue, 15 May 2001 12:02:39 +0200 Subject: [fpc-pascal]1.0.5 In-Reply-To: <20010514201220.R820-100000@boci.ktm.hu>; from irixhu@externet.hu on Mon, May 14, 2001 at 08:14:49PM +0200 References: <20010514201220.R820-100000@boci.ktm.hu> Message-ID: <20010515120239.A738@thales.canvas.no> Thus spoke Boci (irixhu at externet.hu): > I have a big question: When come out the 1.0.5 Release? And don't forget to make the rtl smart-linkable (as in 1.0.2, but not in 1.0.4)! ;-) -- Vennlig hilsen / Best regards |\ ___,,--, _ Arne Hanssen, Senja, Norway /,`--'' \-,,__,'/ http://home.enitel.no/arneh |,4 ) )_ ) /~-----' http://home.c2i.net/bkgras -----'---^~(_/-_)--(_/_)------- From marcov at stack.nl Tue May 15 12:39:52 2001 From: marcov at stack.nl (Marco van de Voort) Date: Tue, 15 May 2001 12:39:52 +0200 (CEST) Subject: [fpc-pascal]execl In-Reply-To: <3B00F771.4D31A343@wanadoo.es> "from jordi at May 15, 2001 11:31:29 am" Message-ID: <20010515103952.88B0C97DF@toad.stack.nl> > I'd like to know why after a sentence like this : > > if paramstr (1) = '-h' then > begin > execl ('/usr/bin/man manual.page'); > halt (); > end; > > the terminal does not work more. How can I restore the terminal ?? Hmm, odd. What are you using to run the terminal? 1. Ncurses (ncrt), 2. the plain Crt, or (in this case, try (1)) 3. no external units? From michael.vancanneyt at wisa.be Tue May 15 13:15:24 2001 From: michael.vancanneyt at wisa.be (Michael Van Canneyt) Date: Tue, 15 May 2001 13:15:24 +0200 (W. Europe Daylight Time) Subject: [fpc-pascal]execl In-Reply-To: <3B00F771.4D31A343@wanadoo.es> Message-ID: On Tue, 15 May 2001, jordi wrote: > I'd like to know why after a sentence like this : > > if paramstr (1) = '-h' then > begin > execl ('/usr/bin/man manual.page'); > halt (); > end; > > the terminal does not work more. How can I restore the terminal ?? This is hard to say. Are you using the CRT unit ? if so, then this is probably the cause; try removing the CRT unit, or use the ncrt unit. Michael. From jovy at wanadoo.es Wed May 16 00:16:42 2001 From: jovy at wanadoo.es (jordi) Date: Wed, 16 May 2001 00:16:42 +0200 Subject: [fpc-pascal]execl References: Message-ID: <3B01AACA.1C5798B2@wanadoo.es> Michael Van Canneyt wrote: > On Tue, 15 May 2001, jordi wrote: > > > I'd like to know why after a sentence like this : > > > > if paramstr (1) = '-h' then > > begin > > execl ('/usr/bin/man manual.page'); > > halt (); > > end; > > > > the terminal does not work more. How can I restore the terminal ?? > > This is hard to say. Are you using the CRT unit ? if so, then this > is probably the cause; try removing the CRT unit, or use the ncrt unit. > > Michael. > Yes, I use the CRT unit. I'll try again with ncurses. Thanks Free Pascal people. Salutacions. Jordi. mailto:jovy at wanadoo.es From jovy at wanadoo.es Wed May 16 00:34:19 2001 From: jovy at wanadoo.es (jordi) Date: Wed, 16 May 2001 00:34:19 +0200 Subject: [fpc-pascal]execl ('/usr/bin/man ..... Message-ID: <3B01AEEA.2DD5286A@wanadoo.es> I removed the CRT unit... this was the cause, thanks. -- Salutacions. Jordi. mailto:jovy at wanadoo.es From pasco at acm.org Wed May 16 01:47:38 2001 From: pasco at acm.org (Rich Pasco) Date: Tue, 15 May 2001 16:47:38 -0700 (PDT) Subject: [fpc-pascal]Smart linking Message-ID: <200105152347.QAA58843@mx0.daemonmail.net> Arne Hanssen wrote, > And don't forget to make the rtl smart-linkable (as in 1.0.2, but > not in 1.0.4)! ;-) I second this important motion! My working environment comprises hundreds of console .EXE files, which suddenly got a lot bigger when 1.0.4 replaced 1.0.2. I want them to be small again. - Rich From schischi at bigfoot.de Wed May 16 15:28:25 2001 From: schischi at bigfoot.de (SchiSchi) Date: Wed, 16 May 2001 15:28:25 +0200 Subject: [fpc-pascal]FreePascal installation for OS2 Message-ID: <3B028079.3663981C@bigfoot.de> Hallo, I've downloaded os2104.zip (EMX version - for OS/2 and DOS) and installed it. In readme.txt it is mentioned to test: ppos2 hello (for EMX version) But I can not find ppos2.exe in this package. Also I tried get other package files (snapshot-os2.zip), which also mentioned explicitely for OS2. No file ppos2.exe at all, but only ppc386. Where can I get ppos2.exe? Please answer to schischi at bigfoot.de too, I'm not a member of the list yet. Thank you very much for help. -Holger From jonas at zeus.rug.ac.be Wed May 16 16:18:16 2001 From: jonas at zeus.rug.ac.be (Jonas Maebe) Date: Wed, 16 May 2001 16:18:16 +0200 (CEST) Subject: [fpc-pascal]FreePascal installation for OS2 In-Reply-To: <3B028079.3663981C@bigfoot.de> Message-ID: On Wed, 16 May 2001, SchiSchi wrote: > I've downloaded os2104.zip (EMX version - for OS/2 and DOS) and > installed it. In readme.txt it is mentioned to test: > ppos2 hello (for EMX version) The readme is outdated. In previous versions, the executable was named differently for most platforms, but this was changed in version 1.0.4. It's now called ppc386(.exe) everwhere. Jonas From daworm at cdc.net Wed May 16 20:03:57 2001 From: daworm at cdc.net (Jeff Wormsley) Date: Wed, 16 May 2001 14:03:57 -0400 Subject: [fpc-pascal]Embedded Linux Journal - ThinkNIC Contest Message-ID: <200105161403570517.0A62157A@mail.inet75.com> Hi, The current (May/June) issue of the Embedded Linux Journal (http://embedded.linuxjournal.com) is running a contest using the ThinkNIC (http://www.thinknic.com) internet appliance as an embedded system. I am thinking of entering this contest using FreePascal as the programming language, and would like to know if anyone could make any recommendations or would like to help (I don't think I could share the prizes if we won, though. ;^) ) I hope this message isn't off topic, but perhaps others in the FreePascal community might want to enter as well, and if one of us made it as a finalist, then it would be great publicity! Anyway, here is what I plan to submit as my entry. If anyone wants to give me some pointers on cleaning it up, I would appreciate it. Thanks, Jeff Wormsley - - - Hello, I am seriously considering entering the NIC contest, but I am unsure if my limited Linux experience will allow me to complete it. But, with the availability of resources such as the Embedded Linux Journal and many newsgroups and websites out there, I think I may be able to do it. So, here's my entry. We'll see! 1. What is the title for your project? Linux Digital Jukebox The concept is to build a replacement for bulky, expensive, hard to maintain jukeboxes (this is NOT yet another home/car MP3 jukebox!) by using commercial, off the shelf products and employing the Linux operating system. 2. What need or desire will your embbeded Linux project satisfy? Tranditional jukebox systems employ complicated mechanical systems for changing CD's or 45's. These systems are expensive and very prone to mechanical breakdown. Loading and unloading these mechanical changer units is also a difficult and error prone procedure. Also, the control boards in these units are expensive to replace when damaged, and are difficult to update. By replacing the control system with low cost, commercial off the shelf (COTS) PC components, and the mechanical changer systems with very low cost, easily replacable hard drive units, system costs can be greatly reduced while increasing reliability, capacity, and upgradeability. The Linux operating system can control most of the needed functionality of a jukebox system "out of the box", and can easily support remote diagnostics, software upgrades, and content replacement via either dialup or broadband (preferable due to file sizes) internet connections. The resulting system will be much smaller than a conventional jukebox, offer much quicker search times for finding selections (including category, artist, and song title lookups), cost far less than conventional jukeboxes, offer a much larger selection, and be much easier to maintain. Bullet List ----------- o Low cost hardware and software o Ease of updates (via internet) o Greater capacity (Approximately 300 CD's on a 20GB hard drive, vs typically 100 CD's per jukebox) o Greater reliability o Easier use by customer via genre and artist searches o Smaller size o Easier accounting 3. What are your qualifications for carrying out an embedded Linux project, including programming and hardware experience? While my use of Linux has been limited (light hobby use of FreeBSD and RedHat 5.0 through 7.0), I have been a professional programmer for 10 years, working with both PC and embedded systems. I have developed applications in C for Echelon Neuron processors with as little as 256 bytes of total space (code and data). I have programmed in Pascal since the earliest Turbo Pascal for CP/M machines, and currently concentrate on coding with Delphi. This experience can be leveraged into the chosen language for software development, FreePascal, which I have had experience with as well working with the Lazarus Project. My formal education is a BSEE from the University of Tennessee, and my current job is approximately 25% embedded design related, with the remainder in back end PC systems, supporting the embedded systems, as well as smart card applications. 4. What additional hardware, if any, are you considering using? For faster boot time, I am considering replacing the 4MB flash card with a 32MB Compact Flash card as detailed in the May/June issue. The CD-ROM drive will be replaced by a large (20 to 40GB) hard drive used to store song files. Since the ThinkNIC does not have parallel or serial ports, nor an ISA bus, the keyboard will be modified to control a pulse mode bill validator, using the pulse relay output to drive a keypress, and the SCROLL LOCK LED to control the validator's Bill Enable line, with interfacing circuitry in between to adapt the signal levels and timing appropriately. To reduce cost, a standard CRT will be used for display, although an LCD panel would be more appropriate to reduce size, heat, and RF noise. 5. What software do you plan to develop? What tools and or libraries do you plan to use? The first generation software will provide a simple graphical interface to control the playing of songs, displaying of cover art images, and control the bill validator. Also included will be simple accounting functions usable by the system operator. Later versions will incorporate remote software and content updates, both via an external telnet login and via front panel access to a server based repository. Billing and licencing issues can be incorporated into the server, for example to handle collection and reporting of RIAA public performance fees. The software development will be done with FreePascal wherever possible, supplemented by C if required. Libraries will include either the SVGALIB, Graph3d, or fpGFX libraries, and one of the available Linux MP3 (or other compressed digital audio) libraries. 6. What sources of information and support will you consult while carrying out your project? Linux Embedded Journal - Information on building very small customized kernals (ie: BusyBox project) and using Compact Flash interfaces. www.freepascal.org - Freepascal documentation and libraries. Usenet Newsgroups with Linux and embedded system focus. Linux websites such as the Linux Router Project that concentrate on creating very small but useful kernals. Various books on Linux usage and development. Considering the scope of this project, I will most likely consider creating a SourceForge project and invite other members of the FreePascal community to assist in the project, if they would like. - - - From Michael.VanCanneyt at Wisa.be Thu May 17 00:07:42 2001 From: Michael.VanCanneyt at Wisa.be (Michael.VanCanneyt at Wisa.be) Date: Thu, 17 May 2001 00:07:42 +0200 (CEST) Subject: [fpc-pascal]Embedded Linux Journal - ThinkNIC Contest In-Reply-To: <200105161403570517.0A62157A@mail.inet75.com> Message-ID: On Wed, 16 May 2001, Jeff Wormsley wrote: > Hi, > The current (May/June) issue of the Embedded Linux Journal (http://embedded.linuxjournal.com) is running a contest using the ThinkNIC (http://www.thinknic.com) internet appliance as an embedded system. I am thinking of entering this contest using FreePascal as the programming language, and would like to know if anyone could make any recommendations or would like to help (I don't think I could share the prizes if we won, though. ;^) ) > > I hope this message isn't off topic, but perhaps others in the FreePascal community might want to enter as well, and if one of us made it as a finalist, then it would be great publicity! > > Anyway, here is what I plan to submit as my entry. If anyone wants to give me some pointers on cleaning it up, I would appreciate it. I think it is a very interesting idea; I don't see any obstacles which would prevent you from making such a system using free pascal. Many things should be available already, FPC could be used as the glue to make things work together. The only tricky thing might be controlling the bill validator. Michael. From daworm9 at home.com Thu May 17 06:40:42 2001 From: daworm9 at home.com (Jeff Wormsley) Date: Thu, 17 May 2001 00:40:42 -0400 Subject: [fpc-pascal]Embedded Linux Journal - ThinkNIC Contest In-Reply-To: References: Message-ID: <200105170040420405.05CC50BF@mail.andrson1.tn.home.com> On 05/17/2001 at 12:07 AM Michael.VanCanneyt at wisa.be wrote: >The only tricky thing might be controlling the bill validator. I think that can be done fairly easily. I plan on stripping a keyboard and tieing the relay of the validator to a key (like F6 or some other rarely used key). So, each bill pulse will just be a keystroke. There is an enable signal on the validator, and I plan to use the keyboard's scroll lock signal to control that. There is a brief moment at power up that it is on, but no one should be using it when it is powering up. When my program is ready to run, I can turn on the scroll lock (I know how to do it in DOS/Win32, shouldn't be difficult in Linux) and the validator should be enabled. If the ThinkNIC had a serial port, I would use the more modern MDB (serial) validator, but as it is, that would entail buying a USB serial adapter and figuring out how to get USB support to work on the box, which is beyond my abilities. (There are only USB drivers for about 5 printers included with the package, and several people have had no luck getting USB to parallel port drivers working with it.) If worst comes to worst, Hagstrom Controls sells a Keyboard to I/O controller that is programmable. But I would rather avoid the $120(US) it costs to buy such a thing. Jeff. From James_Wilson at i2.com Thu May 17 07:00:21 2001 From: James_Wilson at i2.com (James_Wilson at i2.com) Date: Thu, 17 May 2001 01:00:21 -0400 Subject: [fpc-pascal]Out of office notice. Message-ID: I will be out of the office starting 05/17/2001 and will not return until 05/22/2001. I will be on vacation starting Thursday, May 17th and will return on Tuesday, May 21st. I'll reply to your message at that time. From arneh at enitel.no Wed May 16 21:18:55 2001 From: arneh at enitel.no (Arne Hanssen) Date: Wed, 16 May 2001 21:18:55 +0200 Subject: [fpc-pascal]Free Vision / Turbo Vision. Message-ID: <20010516211855.C728@thales.canvas.no> As Free Vision is not released (originally because it was more or less copied from Borland code), I wonder if the solution Virtual Pascal has selected could "make things happen" for FPC as well: Virtual Pascal provides patches of the original TV source to adapt TV to OS/2 and Win32. So if I have the BP-TV source (which I do) I can patch TV for VP's native plattforms... To the point: Is this a feasable option for the FPC team, at least for Linux (hint, hint ;)? Or will this be so much work that Free Vision is closer to release than this option? Or could the (now withdrawn) FV-version be easily adopted to this scheme? Sorry to bother you with this, but I'm eager to build Linux- versions of my TV-apps! ;-) -- Vennlig hilsen / Best regards |\ ___,,--, _ Arne Hanssen, Senja, Norway /,`--'' \-,,__,'/ http://home.enitel.no/arneh |,4 ) )_ ) /~-----' http://home.c2i.net/bkgras -----'---^~(_/-_)--(_/_)------- From michael.vancanneyt at wisa.be Thu May 17 09:29:28 2001 From: michael.vancanneyt at wisa.be (Michael Van Canneyt) Date: Thu, 17 May 2001 09:29:28 +0200 (W. Europe Daylight Time) Subject: [fpc-pascal]Free Vision / Turbo Vision. In-Reply-To: <20010516211855.C728@thales.canvas.no> Message-ID: On Wed, 16 May 2001, Arne Hanssen wrote: > As Free Vision is not released (originally because it was more > or less copied from Borland code), I wonder if the solution Virtual > Pascal has selected could "make things happen" for FPC as well: > > Virtual Pascal provides patches of the original TV source to > adapt TV to OS/2 and Win32. So if I have the BP-TV source (which > I do) I can patch TV for VP's native plattforms... > > To the point: Is this a feasable option for the FPC team, at > least for Linux (hint, hint ;)? Or will this be so much work > that Free Vision is closer to release than this option? Or could > the (now withdrawn) FV-version be easily adopted to this scheme? > > Sorry to bother you with this, but I'm eager to build Linux- > versions of my TV-apps! ;-) This has actually been proposed several times, so an attempt could be made to do this. On the other hand, Pierre Muller seems to have the new FV to a point where it can actually run an application. Since the patch for TV is almost as big as the sources itself, it may be a better strategy to cooperate with Pierre to get FVision to work. Michael. From arneh at enitel.no Sun May 20 10:49:51 2001 From: arneh at enitel.no (Arne Hanssen) Date: Sun, 20 May 2001 10:49:51 +0200 Subject: [fpc-pascal]Free Vision / Turbo Vision. In-Reply-To: ; from michael.vancanneyt@wisa.be on Thu, May 17, 2001 at 09:29:28AM +0200 References: <20010516211855.C728@thales.canvas.no> Message-ID: <20010520104951.B728@thales.canvas.no> Thus spoke Michael van Canneyt (michael.vancanneyt at wisa.be): > On Wed, 16 May 2001, Arne Hanssen wrote: > > > Virtual Pascal provides patches of the original TV source to > > adapt TV to OS/2 and Win32. So if I have the BP-TV source (which > > I do) I can patch TV for VP's native plattforms... > > > > To the point: Is this a feasable option for the FPC team...? > > On the other hand, Pierre Muller seems to have the new FV to a point > where it can actually run an application. Since the patch for TV is > almost as big as the sources itself, it may be a better strategy to > cooperate with Pierre to get FVision to work. That sounds like good news to me! The release of FV should be "real soon now" - hopefully(?)! ;-) -- Vennlig hilsen / Best regards |\ ___,,--, _ Arne Hanssen, Senja, Norway /,`--'' \-,,__,'/ http://home.enitel.no/arneh |,4 ) )_ ) /~-----' http://home.c2i.net/bkgras -----'---^~(_/-_)--(_/_)------- From schischi at bigfoot.de Fri May 25 09:01:57 2001 From: schischi at bigfoot.de (SchiSchi) Date: Fri, 25 May 2001 09:01:57 +0200 Subject: [fpc-pascal]RE: FreePascal installation for OS2 / accessing PostgreSQL database Message-ID: <3B0E0364.4FCF3430@bigfoot.de> Hallo Arne, thank you for your answer. Yes I've tested also VPascal. Usually I use the Sibyl compiler, which is quite similar to Delphi. My original intention to test VPascal and FreePascal is, that I try to get a client interface to PostgreSQL working under OS2 using the written Pascal units. But I've bad luck. Something is (or I'm doing) wrong. EMX, the Postgres-DLL (PQ.DLL) and my unit (imports PQ.DLL functions) does not work together somehow. Also delivered sample units for FreePascal and VPascal I do not get running. Somewhere a file "c.a" is requested, I do not have. Using the other compiler (and sample) I get the result "Connection terminated by SIGSEV" (from EMX). All I know is, PostgreSql installation is correct, because the delivered PSQL.EXE does work. I'm nearly at the end of my ideas. Any comments are welcome. Best Regards and Thanks. -Holger P.S.: Please answer to schischi at bigfoot.de too, I'm not a member of the list yet. >-----Original Message----- >From: ext Arne Hanssen [mailto:arneh at enitel.no] >Sent: Sonntag, 20. Mai 2001 10:16 >To: schischi at bigfoot.de >Subject: FreePascal installation for OS2 > > >----- Forwarded message from SchiSchi ----- > >I've downloaded os2104.zip (EMX version - for OS/2 and DOS) and >installed it. In readme.txt it is mentioned to test: >ppos2 hello (for EMX version) > >----- End forwarded message ----- > >Have you concidered Virtual Pascal (www.vpascal.com) for OS/2 >development? I think VP is a better Pascal compiler for this >plattform than FPC (VP is a native OS/2 compiler, which later >on was extended to support Win32) - and it is (now) free. > >-- >Vennlig hilsen / Best regards |\ ___,,--, _ >Arne Hanssen, Senja, Norway /,`--'' \-,,__,'/ >http://home.enitel.no/arneh |,4 ) )_ ) /~-----' >http://home.c2i.net/bkgras -----'---^~(_/-_)--(_/_)------- > From kanzelsberger at rekt.umb.sk Wed May 30 17:39:39 2001 From: kanzelsberger at rekt.umb.sk (Kanzelsberger Pavel) Date: Wed, 30 May 2001 17:39:39 +0200 Subject: [fpc-pascal]FreePascal for BeOS Message-ID: Hi all, we uploaded port of FreePascal for BeOS in it's current state and made it available to public. We will write some ReadMe file containing information how to compile it and what is still needed to do... This port is not finished and we have no more time to work on it, hope someone can continue... Address is: http://pixel32.box.sk, Section: About, SubSection: FreePascal regards, Pavel Kanzelsberger -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsl at centroin.com.br Wed May 30 23:02:05 2001 From: fsl at centroin.com.br (Fernando Lozano) Date: Wed, 30 May 2001 18:02:05 -0300 (EST) Subject: [fpc-pascal]mysql on windows Message-ID: <200105302102.f4UL25e07986@trex2.centroin.com.br> Hi Michael and list! I am a teacher in the process of making the computer science department of a brazilian university and a college switch fo free pascal. So far, everybody is liking it! I have the Windows version of MySQL installed but cannot link the testdb.pp example suplied with fpc-1.0.4 for Windows. I tells it cannot find -lmysqlclient... My ppc396.cfg is points to the lib directory of my Mysql installation. Using the debuging options from ppc386 and ldw I could find it is looking for libmysqlclient.a and not mysqlclient.lib as suplied with mysql. I tried creating a copy using the name expected by the linker, and now it complains it cannot find -lm. :-( Should I get a libm.a file somewhere (from a cygwin32 distro)? Or am I going the wrong direction? Any help will be apreciated. It will be great to fave a FPC app using mysql and gtk+ running on both Windows and Linux. :-) []s, Fernando Lozano From pars at nbnet.nb.ca Thu May 31 00:01:05 2001 From: pars at nbnet.nb.ca (Jeff Patterson) Date: Wed, 30 May 2001 19:01:05 -0300 Subject: [fpc-pascal]mysql on windows References: <200105302102.f4UL25e07986@trex2.centroin.com.br> Message-ID: <000701c0e954$06c56ba0$6a63b40a@nbtel.net> ----- Original Message ----- From: "Fernando Lozano" To: Cc: Sent: Wednesday, May 30, 2001 6:02 PM Subject: [fpc-pascal]mysql on windows > I have the Windows version of MySQL installed but cannot link the testdb.pp example suplied with fpc-1.0.4 for > Windows. I tells it cannot find -lmysqlclient... > > My ppc396.cfg is points to the lib directory of my Mysql installation. Using the debuging options from ppc386 and > ldw I could find it is looking for libmysqlclient.a and not mysqlclient.lib as suplied with mysql. I tried creating a copy > using the name expected by the linker, and now it complains it cannot find -lm. :-( There is supposed to be a DLL called libmysql.dll that should probably be copied from the MySQL installation to the Windows System directory. Oddly though, not all distribution packages of MySQL for Windows has this DLL included. I managed to get the DLL from an older distribution of MySQL and it seems to work fine with the current version. From danbu at poczta.onet.pl Thu May 31 07:10:57 2001 From: danbu at poczta.onet.pl (Danuta Burnicka) Date: Thu, 31 May 2001 07:10:57 +0200 Subject: [fpc-pascal]mysql on windows Message-ID: <20010531061053Z602312-7975+4293@ghost2.onet.pl> The library 'libmysql.dll' you can also download from the site: http://www.fichtner.net/delphi/mysql.delphi.phtml >There is supposed to be a DLL called libmysql.dll that should probably be >copied from the MySQL installation to the Windows System directory. Oddly >though, not all distribution packages of MySQL for Windows has this DLL >included. I managed to get the DLL from an older distribution of MySQL and >it seems to work fine with the current version. Danuta Burnicka -- Kamera wideo Sony, 5000 zl wygraj w konkursie eMarketu i Onet.pl [ http://konkursy.onet.pl/emarket ] From memsom at post.interalpha.co.uk Thu May 31 11:08:08 2001 From: memsom at post.interalpha.co.uk (Full_Name) Date: Thu, 31 May 2001 10:08:08 +0100 (BST) Subject: [fpc-pascal]FreePascal for BeOS In-Reply-To: References: Message-ID: <991300088.3b1609f86419c@post.interalpha.co.uk> Quoting Kanzelsberger Pavel : You total star!!! This was on my list of "things to do", but it was at about number 5 or 6 out of 10. I'm going to look at it right away ;) I even have BeOS on my laptop here!! Matt > Hi all, > > we uploaded port of FreePascal for BeOS in it's current state and made > it > available to public. We will write some ReadMe file containing > information > how to compile it and what is still needed to do... > > This port is not finished and we have no more time to work on it, hope > someone can continue... > > Address is: http://pixel32.box.sk, Section: About, SubSection: > FreePascal > > regards, Pavel Kanzelsberger > From kanzelsberger at rekt.umb.sk Thu May 31 11:31:10 2001 From: kanzelsberger at rekt.umb.sk (Kanzelsberger Pavel) Date: Thu, 31 May 2001 11:31:10 +0200 Subject: [fpc-pascal]FreePascal for BeOS Message-ID: Great, we will provide more information about things what has to be finished, what already is... etc. Cool! I love this FPC community!! :-))))) Pavel -----Original Message----- From: Full_Name [mailto:memsom at post.interalpha.co.uk] Sent: Thursday, May 31, 2001 11:08 AM To: fpc-pascal at deadlock.et.tudelft.nl Subject: Re: [fpc-pascal]FreePascal for BeOS Quoting Kanzelsberger Pavel : You total star!!! This was on my list of "things to do", but it was at about number 5 or 6 out of 10. I'm going to look at it right away ;) I even have BeOS on my laptop here!! Matt > Hi all, > > we uploaded port of FreePascal for BeOS in it's current state and made > it > available to public. We will write some ReadMe file containing > information > how to compile it and what is still needed to do... > > This port is not finished and we have no more time to work on it, hope > someone can continue... > > Address is: http://pixel32.box.sk, Section: About, SubSection: > FreePascal > > regards, Pavel Kanzelsberger > _______________________________________________ fpc-pascal maillist - fpc-pascal at lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal -------------- next part -------------- An HTML attachment was scrubbed... URL: From kanzelsberger at rekt.umb.sk Thu May 31 11:32:00 2001 From: kanzelsberger at rekt.umb.sk (Kanzelsberger Pavel) Date: Thu, 31 May 2001 11:32:00 +0200 Subject: [fpc-pascal]mysql on windows Message-ID: I have the same problem, anyway DLL is not needed in compilation time... compiler is looking for mysqlclient.lib or .aw? file... regards, Pavel Kanzelsberger -----Original Message----- From: Jeff Patterson [mailto:pars at nbnet.nb.ca] Sent: Thursday, May 31, 2001 12:01 AM To: fpc-pascal at deadlock.et.tudelft.nl Subject: Re: [fpc-pascal]mysql on windows ----- Original Message ----- From: "Fernando Lozano" To: Cc: Sent: Wednesday, May 30, 2001 6:02 PM Subject: [fpc-pascal]mysql on windows > I have the Windows version of MySQL installed but cannot link the testdb.pp example suplied with fpc-1.0.4 for > Windows. I tells it cannot find -lmysqlclient... > > My ppc396.cfg is points to the lib directory of my Mysql installation. Using the debuging options from ppc386 and > ldw I could find it is looking for libmysqlclient.a and not mysqlclient.lib as suplied with mysql. I tried creating a copy > using the name expected by the linker, and now it complains it cannot find -lm. :-( There is supposed to be a DLL called libmysql.dll that should probably be copied from the MySQL installation to the Windows System directory. Oddly though, not all distribution packages of MySQL for Windows has this DLL included. I managed to get the DLL from an older distribution of MySQL and it seems to work fine with the current version. _______________________________________________ fpc-pascal maillist - fpc-pascal at lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal -------------- next part -------------- An HTML attachment was scrubbed... URL: From kanzelsberger at rekt.umb.sk Thu May 31 11:37:04 2001 From: kanzelsberger at rekt.umb.sk (Kanzelsberger Pavel) Date: Thu, 31 May 2001 11:37:04 +0200 Subject: [fpc-pascal]mysql on windows Message-ID: I get it working by removing the last lines (complete INPUT) from link.res and running ppas.bat, but can someone explain it? this is what I erased from link.res file: INPUT( -lmysqlclient -lm -lc -lc ) regards, Pavel Kanzelsberger -----Original Message----- From: Fernando Lozano [mailto:fsl at centroin.com.br] Sent: Wednesday, May 30, 2001 11:02 PM To: michael.vancanneyt at freepascal.org Cc: fpc-pascal at lists.freepascal.org Subject: [fpc-pascal]mysql on windows Hi Michael and list! I am a teacher in the process of making the computer science department of a brazilian university and a college switch fo free pascal. So far, everybody is liking it! I have the Windows version of MySQL installed but cannot link the testdb.pp example suplied with fpc-1.0.4 for Windows. I tells it cannot find -lmysqlclient... My ppc396.cfg is points to the lib directory of my Mysql installation. Using the debuging options from ppc386 and ldw I could find it is looking for libmysqlclient.a and not mysqlclient.lib as suplied with mysql. I tried creating a copy using the name expected by the linker, and now it complains it cannot find -lm. :-( Should I get a libm.a file somewhere (from a cygwin32 distro)? Or am I going the wrong direction? Any help will be apreciated. It will be great to fave a FPC app using mysql and gtk+ running on both Windows and Linux. :-) []s, Fernando Lozano _______________________________________________ fpc-pascal maillist - fpc-pascal at lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter at freepascal.org Thu May 31 12:56:11 2001 From: peter at freepascal.org (Peter Vreman) Date: Thu, 31 May 2001 10:56:11 GMT Subject: [fpc-pascal]mysql on windows Message-ID: > I have the same problem, anyway DLL is not needed in compilation time... > compiler is looking for mysqlclient.lib or .aw? file... With the 1.1 development compiler it is possible to create such import library automatically on compiletime. This will then require the .dll to be available Peter From kanzelsberger at rekt.umb.sk Thu May 31 13:19:19 2001 From: kanzelsberger at rekt.umb.sk (Kanzelsberger Pavel) Date: Thu, 31 May 2001 13:19:19 +0200 Subject: [fpc-pascal]mysql on windows Message-ID: I'm using v1.1 of compiler... but erasing last INPUT() from link.res helps, anyway I don't understand why :) Pavel -----Original Message----- From: Peter Vreman [mailto:peter at freepascal.org] Sent: Thursday, May 31, 2001 12:56 PM To: fpc-pascal at deadlock.et.tudelft.nl Subject: RE: [fpc-pascal]mysql on windows > I have the same problem, anyway DLL is not needed in compilation time... > compiler is looking for mysqlclient.lib or .aw? file... With the 1.1 development compiler it is possible to create such import library automatically on compiletime. This will then require the .dll to be available Peter _______________________________________________ fpc-pascal maillist - fpc-pascal at lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal -------------- next part -------------- An HTML attachment was scrubbed... URL: From memsom at post.interalpha.co.uk Thu May 31 13:49:38 2001 From: memsom at post.interalpha.co.uk (Full_Name) Date: Thu, 31 May 2001 12:49:38 +0100 (BST) Subject: [fpc-pascal]FreePascal for BeOS In-Reply-To: References: Message-ID: <991309778.3b162fd29eb1d@post.interalpha.co.uk> Quoting Kanzelsberger Pavel : FPC officially runs on BeOS ;) Does console output work?? 'writeln('Hello world');' doesn't seem to work. Matt > Great, we will provide more information about things what has to be > finished, what already is... etc. > > Cool! I love this FPC community!! :-))))) > > Pavel > From peter at freepascal.org Thu May 31 14:34:59 2001 From: peter at freepascal.org (Peter Vreman) Date: Thu, 31 May 2001 12:34:59 GMT Subject: [fpc-pascal]mysql on windows Message-ID: > I'm using v1.1 of compiler... but erasing last INPUT() from link.res helps, > anyway I don't understand why :) Which revision of the mysql.pp do you have? 1.5 is the correct version, it contains the next lines: {$ifndef win32} {$linklib c} {$linklib m} {$endif} this will result in not having the -lc and -lm in the link.res From kanzelsberger at rekt.umb.sk Thu May 31 14:53:01 2001 From: kanzelsberger at rekt.umb.sk (Kanzelsberger Pavel) Date: Thu, 31 May 2001 14:53:01 +0200 Subject: [fpc-pascal]mysql on windows Message-ID: Yes it's v1.5 { $Id: mysql.pp,v 1.5 2001/03/13 08:50:38 michael Exp $ } and contains {$ifdef win32} Const mysqllib = 'libmysql'; {$else} Const mysqllib = 'mysqlclient'; {$endif} {$ifndef win32} {$linklib c} {$linklib m} {$endif} -----Original Message----- From: Peter Vreman [mailto:peter at freepascal.org] Sent: Thursday, May 31, 2001 2:35 PM To: fpc-pascal at deadlock.et.tudelft.nl Subject: RE: [fpc-pascal]mysql on windows > I'm using v1.1 of compiler... but erasing last INPUT() from link.res helps, > anyway I don't understand why :) Which revision of the mysql.pp do you have? 1.5 is the correct version, it contains the next lines: {$ifndef win32} {$linklib c} {$linklib m} {$endif} this will result in not having the -lc and -lm in the link.res _______________________________________________ fpc-pascal maillist - fpc-pascal at lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal -------------- next part -------------- An HTML attachment was scrubbed... URL: From kanzelsberger at rekt.umb.sk Thu May 31 15:06:59 2001 From: kanzelsberger at rekt.umb.sk (Kanzelsberger Pavel) Date: Thu, 31 May 2001 15:06:59 +0200 Subject: [fpc-pascal]Latest snapshot problem Message-ID: I downloaded latest snapshot right now and tried to compile my program. Compilation failed because compiler can't find file "libpwindows.aw" ... where to get it? or how to generate it? -----Original Message----- From: Kanzelsberger Pavel [mailto:kanzelsberger at rekt.umb.sk] Sent: Thursday, May 31, 2001 2:53 PM To: 'fpc-pascal at deadlock.et.tudelft.nl' Subject: RE: [fpc-pascal]mysql on windows Yes it's v1.5 { $Id: mysql.pp,v 1.5 2001/03/13 08:50:38 michael Exp $ } and contains {$ifdef win32} Const mysqllib = 'libmysql'; {$else} Const mysqllib = 'mysqlclient'; {$endif} {$ifndef win32} {$linklib c} {$linklib m} {$endif} -----Original Message----- From: Peter Vreman [ mailto:peter at freepascal.org ] Sent: Thursday, May 31, 2001 2:35 PM To: fpc-pascal at deadlock.et.tudelft.nl Subject: RE: [fpc-pascal]mysql on windows > I'm using v1.1 of compiler... but erasing last INPUT() from link.res helps, > anyway I don't understand why :) Which revision of the mysql.pp do you have? 1.5 is the correct version, it contains the next lines: {$ifndef win32} {$linklib c} {$linklib m} {$endif} this will result in not having the -lc and -lm in the link.res _______________________________________________ fpc-pascal maillist - fpc-pascal at lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal -------------- next part -------------- An HTML attachment was scrubbed... URL: From kanzelsberger at rekt.umb.sk Thu May 31 15:17:09 2001 From: kanzelsberger at rekt.umb.sk (Kanzelsberger Pavel) Date: Thu, 31 May 2001 15:17:09 +0200 Subject: [fpc-pascal]MySQL again Message-ID: Anyway what does this mean?? I also tried -Un option.... Fatal: Unit MYSQL searched but mysql found regards, Pavel Kanzelsberger -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.vancanneyt at wisa.be Thu May 31 15:11:28 2001 From: michael.vancanneyt at wisa.be (Michael Van Canneyt) Date: Thu, 31 May 2001 15:11:28 +0200 (W. Europe Daylight Time) Subject: [fpc-pascal]mysql on windows In-Reply-To: Message-ID: On Thu, 31 May 2001, Kanzelsberger Pavel wrote: > Yes it's v1.5 > > { $Id: mysql.pp,v 1.5 2001/03/13 08:50:38 michael Exp $ } > > and contains > > {$ifdef win32} > Const mysqllib = 'libmysql'; > {$else} > Const mysqllib = 'mysqlclient'; > {$endif} > > {$ifndef win32} > {$linklib c} > {$linklib m} > {$endif} But in that case, the library 'mysqlclient' should not be looked for, so with which compiler are you working ? Michael. From LeeJ at logica.com Thu May 31 15:13:54 2001 From: LeeJ at logica.com (Lee, John) Date: Thu, 31 May 2001 14:13:54 +0100 Subject: [fpc-pascal]Latest snapshot problem Message-ID: <593D817077A5D211A055009027285F2805E5B90B@knuth.logica.co.uk> The snapshots currently do not have smartlinking enabled - ... looks as if it's looking for the smartlink files...J -----Original Message----- From: Kanzelsberger Pavel [mailto:kanzelsberger at rekt.umb.sk] Sent: Thursday, May 31, 2001 02:07 To: 'fpc-pascal at deadlock.et.tudelft.nl' Subject: [fpc-pascal]Latest snapshot problem I downloaded latest snapshot right now and tried to compile my program. Compilation failed because compiler can't find file "libpwindows.aw" ... where to get it? or how to generate it? -----Original Message----- From: Kanzelsberger Pavel [mailto:kanzelsberger at rekt.umb.sk] Sent: Thursday, May 31, 2001 2:53 PM To: 'fpc-pascal at deadlock.et.tudelft.nl' Subject: RE: [fpc-pascal]mysql on windows Yes it's v1.5 { $Id: mysql.pp,v 1.5 2001/03/13 08:50:38 michael Exp $ } and contains {$ifdef win32} Const mysqllib = 'libmysql'; {$else} Const mysqllib = 'mysqlclient'; {$endif} {$ifndef win32} {$linklib c} {$linklib m} {$endif} -----Original Message----- From: Peter Vreman [ mailto:peter at freepascal.org ] Sent: Thursday, May 31, 2001 2:35 PM To: fpc-pascal at deadlock.et.tudelft.nl Subject: RE: [fpc-pascal]mysql on windows > I'm using v1.1 of compiler... but erasing last INPUT() from link.res helps, > anyway I don't understand why :) Which revision of the mysql.pp do you have? 1.5 is the correct version, it contains the next lines: {$ifndef win32} {$linklib c} {$linklib m} {$endif} this will result in not having the -lc and -lm in the link.res _______________________________________________ fpc-pascal maillist - fpc-pascal at lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonas at zeus.rug.ac.be Thu May 31 15:21:12 2001 From: jonas at zeus.rug.ac.be (Jonas Maebe) Date: Thu, 31 May 2001 15:21:12 +0200 Subject: [fpc-pascal]Latest snapshot problem In-Reply-To: <593D817077A5D211A055009027285F2805E5B90B@knuth.logica.co.uk> Message-ID: <200105311321.PAA15547@student6.rug.ac.be> On donderdag, mei 31, 2001, at 03:13 , Lee, John wrote: > The snapshots currently do not have smartlinking enabled - ... looks as > if it's looking for the smartlink files...J Normally, the windows unit is *always* compiled smartlinkable (because otherwise you get problems with functinos which are available only in certain windows versions) It should have {$smartlink on} at the top somewhere in it. Jonas From kanzelsberger at rekt.umb.sk Thu May 31 15:27:27 2001 From: kanzelsberger at rekt.umb.sk (Kanzelsberger Pavel) Date: Thu, 31 May 2001 15:27:27 +0200 Subject: [fpc-pascal]mysql on windows Message-ID: Win32 version of compiler... looks like that WIN32 is not defined? -----Original Message----- From: Michael Van Canneyt [mailto:michael.vancanneyt at wisa.be] Sent: Thursday, May 31, 2001 3:11 PM To: 'fpc-pascal at deadlock.et.tudelft.nl' Subject: RE: [fpc-pascal]mysql on windows On Thu, 31 May 2001, Kanzelsberger Pavel wrote: > Yes it's v1.5 > > { $Id: mysql.pp,v 1.5 2001/03/13 08:50:38 michael Exp $ } > > and contains > > {$ifdef win32} > Const mysqllib = 'libmysql'; > {$else} > Const mysqllib = 'mysqlclient'; > {$endif} > > {$ifndef win32} > {$linklib c} > {$linklib m} > {$endif} But in that case, the library 'mysqlclient' should not be looked for, so with which compiler are you working ? Michael. _______________________________________________ fpc-pascal maillist - fpc-pascal at lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonas at zeus.rug.ac.be Thu May 31 15:27:14 2001 From: jonas at zeus.rug.ac.be (Jonas Maebe) Date: Thu, 31 May 2001 15:27:14 +0200 Subject: [fpc-pascal]mysql on windows In-Reply-To: Message-ID: <200105311327.PAA15965@student6.rug.ac.be> On donderdag, mei 31, 2001, at 03:27 , Kanzelsberger Pavel wrote: > Win32 version of compiler... looks like that WIN32 is not defined? Use -va while compiling the unit to see what is rejected and accepted regarding defines. The most likely is that the compiler is using another compiled unit somewhere, use -vt while compiling your program to see which one. Jonas From kanzelsberger at rekt.umb.sk Thu May 31 15:38:37 2001 From: kanzelsberger at rekt.umb.sk (Kanzelsberger Pavel) Date: Thu, 31 May 2001 15:38:37 +0200 Subject: [fpc-pascal]Latest snapshot problem Message-ID: okay, anyway can you explain also this:? Warning: mysql_com.ppw Interface CRC changed -1749406168<>1006827430 to understand i'm playing with different snapshots and full version Pavel -----Original Message----- From: Jonas Maebe [mailto:jonas at zeus.rug.ac.be] Sent: Thursday, May 31, 2001 3:21 PM To: fpc-pascal at deadlock.et.tudelft.nl Subject: Re: [fpc-pascal]Latest snapshot problem On donderdag, mei 31, 2001, at 03:13 , Lee, John wrote: > The snapshots currently do not have smartlinking enabled - ... looks as > if it's looking for the smartlink files...J Normally, the windows unit is *always* compiled smartlinkable (because otherwise you get problems with functinos which are available only in certain windows versions) It should have {$smartlink on} at the top somewhere in it. Jonas _______________________________________________ fpc-pascal maillist - fpc-pascal at lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal -------------- next part -------------- An HTML attachment was scrubbed... URL: From kanzelsberger at rekt.umb.sk Thu May 31 15:40:03 2001 From: kanzelsberger at rekt.umb.sk (Kanzelsberger Pavel) Date: Thu, 31 May 2001 15:40:03 +0200 Subject: [fpc-pascal]mysql on windows Message-ID: thanks! -----Original Message----- From: Jonas Maebe [mailto:jonas at zeus.rug.ac.be] Sent: Thursday, May 31, 2001 3:27 PM To: fpc-pascal at deadlock.et.tudelft.nl Subject: Re: [fpc-pascal]mysql on windows On donderdag, mei 31, 2001, at 03:27 , Kanzelsberger Pavel wrote: > Win32 version of compiler... looks like that WIN32 is not defined? Use -va while compiling the unit to see what is rejected and accepted regarding defines. The most likely is that the compiler is using another compiled unit somewhere, use -vt while compiling your program to see which one. Jonas _______________________________________________ fpc-pascal maillist - fpc-pascal at lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonas at zeus.rug.ac.be Thu May 31 15:49:01 2001 From: jonas at zeus.rug.ac.be (Jonas Maebe) Date: Thu, 31 May 2001 15:49:01 +0200 Subject: [fpc-pascal]Latest snapshot problem In-Reply-To: Message-ID: <200105311349.PAA16522@student6.rug.ac.be> On donderdag, mei 31, 2001, at 03:38 , Kanzelsberger Pavel wrote: > okay, anyway can you explain also this:? > > Warning: mysql_com.ppw Interface CRC changed -1749406168<>1006827430 > > to understand i'm playing with different snapshots and full version Don't do that. You can use them alongside eachother, but don't mix untis from one with another, it won't work most of the time. Jonas From kanzelsberger at rekt.umb.sk Thu May 31 16:05:53 2001 From: kanzelsberger at rekt.umb.sk (Kanzelsberger Pavel) Date: Thu, 31 May 2001 16:05:53 +0200 Subject: [fpc-pascal]Latest snapshot problem Message-ID: I'm not mixing, i'm trying to compile MySQL units using different versions of compiler :) -----Original Message----- From: Jonas Maebe [mailto:jonas at zeus.rug.ac.be] Sent: Thursday, May 31, 2001 3:49 PM To: fpc-pascal at deadlock.et.tudelft.nl Subject: Re: [fpc-pascal]Latest snapshot problem On donderdag, mei 31, 2001, at 03:38 , Kanzelsberger Pavel wrote: > okay, anyway can you explain also this:? > > Warning: mysql_com.ppw Interface CRC changed -1749406168<>1006827430 > > to understand i'm playing with different snapshots and full version Don't do that. You can use them alongside eachother, but don't mix untis from one with another, it won't work most of the time. Jonas _______________________________________________ fpc-pascal maillist - fpc-pascal at lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonas at zeus.rug.ac.be Thu May 31 16:06:04 2001 From: jonas at zeus.rug.ac.be (Jonas Maebe) Date: Thu, 31 May 2001 16:06:04 +0200 Subject: [fpc-pascal]Latest snapshot problem In-Reply-To: Message-ID: <200105311406.QAA17561@student6.rug.ac.be> On donderdag, mei 31, 2001, at 04:05 , Kanzelsberger Pavel wrote: > I'm not mixing, i'm trying to compile MySQL units using different > versions of compiler :) Make sure they all use their own RTL. Jonas From Thierry.Cabuzel at gial.be Thu May 31 16:25:59 2001 From: Thierry.Cabuzel at gial.be (Thierry.Cabuzel at gial.be) Date: Thu, 31 May 2001 16:25:59 +0200 Subject: [fpc-pascal]Help needed Message-ID: Hello, I search a source code for a TCP/IP packet sniffer written in Pascal for Windows (or in the worst case scenario Linux). I need this tool to try do decode communication protocol between 2 programs to insert and modify data from a 3rd program (like a aiming proxy for quake :-( ) but for a real world industrial application :-). Thierry Cabuzel -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter at freepascal.org Thu May 31 16:57:34 2001 From: peter at freepascal.org (Peter Vreman) Date: Thu, 31 May 2001 14:57:34 GMT Subject: [fpc-pascal]Latest snapshot problem Message-ID: > I'm not mixing, i'm trying to compile MySQL units using different versions > of compiler :) That should work, as both 1.0.x and 1.1 branches use exactly the same sources. From fsl at centroin.com.br Thu May 31 21:48:03 2001 From: fsl at centroin.com.br (Fernando Lozano) Date: Thu, 31 May 2001 16:48:03 -0300 (EST) Subject: [fpc-pascal]mysql on windows Message-ID: <200105311948.f4VJm3u03202@trex2.centroin.com.br> Hi Jeff, > > I have the Windows version of MySQL installed but cannot link the > testdb.pp example suplied with fpc-1.0.4 for > > Windows. I tells it cannot find -lmysqlclient... > > > > My ppc396.cfg is points to the lib directory of my Mysql installation. > Using the debuging options from ppc386 and > > ldw I could find it is looking for libmysqlclient.a and not > mysqlclient.lib as suplied with mysql. I tried creating a copy > > using the name expected by the linker, and now it complains it cannot > find -lm. :-( > > There is supposed to be a DLL called libmysql.dll that should probably be > copied from the MySQL installation to the Windows System directory. Oddly > though, not all distribution packages of MySQL for Windows has this DLL > included. I managed to get the DLL from an older distribution of MySQL and > it seems to work fine with the current version. My installation of MySQL includes libmysql.dll, but it is not enough. MySQL docs tell you must link against libmysql.lib to use libmysql.dll, so I tried this, renaming libmysql.lib to libmysqlclient.a as fpc looks for. The result is the same as before, ldw complains about missing -lm. Maybe you have a complete cygwin32 environment installed or some other package that provides libm.a just like an Unix OS would. []s, Fernando Lozano From fsl at centroin.com.br Thu May 31 22:20:56 2001 From: fsl at centroin.com.br (Fernando Lozano) Date: Thu, 31 May 2001 17:20:56 -0300 (EST) Subject: [fpc-pascal]mysql on windows Message-ID: <200105312020.f4VKKuF20472@trex2.centroin.com.br> Hi Kanzelsberger, > I have the same problem, anyway DLL is not needed in compilation time... > compiler is looking for mysqlclient.lib or .aw? file... My debugging shows that the compiler (actually ldw.exe, the linker) is looking for libmysqlclient.a. Renaming the libmysql.dll or libmysqlclient.lib to libmysqlclient.a solvers the error about -lmysqlclient but shows a new error about -lm. The MySQL manual states you need to link libmysql.lib to use libmysql.dll. I guess I need to get a working libm.a from somewhere, maybe cygwin. []s, Fernando Lozano From fsl at centroin.com.br Thu May 31 22:22:06 2001 From: fsl at centroin.com.br (Fernando Lozano) Date: Thu, 31 May 2001 17:22:06 -0300 (EST) Subject: [fpc-pascal]mysql on windows Message-ID: <200105312022.f4VKM6K21057@trex2.centroin.com.br> Hi Kanzelsberger, > I get it working by removing the last lines (complete INPUT) from link.res > and running ppas.bat, but can someone explain it? > > this is what I erased from link.res file: > > INPUT( > -lmysqlclient > -lm > -lc > -lc > ) Really works, that is, the program can connect to a mysql database and get data from it? []s, Fernando Lozano From fsl at centroin.com.br Thu May 31 22:27:48 2001 From: fsl at centroin.com.br (Fernando Lozano) Date: Thu, 31 May 2001 17:27:48 -0300 (EST) Subject: [fpc-pascal]mysql on windows Message-ID: <200105312027.f4VKRnW23542@trex2.centroin.com.br> Hi Kanzelsberger, > I'm using v1.1 of compiler... but erasing last INPUT() from link.res helps, > anyway I don't understand why :) I guess libmysql that contains the references to libc and libm as needed to generate an executable. Does anyone knows how check this, and if I am right how to patch the (mysql) libraries so they do not include this information anymore? By the way, the same error (about -lm and -lc) happens when I try to compile the Interbase 6.0 demo. The Interbase 4.0 compiles, links and runs fine though. []s, Fernando Lozano From fsl at centroin.com.br Thu May 31 22:33:15 2001 From: fsl at centroin.com.br (Fernando Lozano) Date: Thu, 31 May 2001 17:33:15 -0300 (EST) Subject: [fpc-pascal]mysql on windows Message-ID: <200105312033.f4VKXF126178@trex2.centroin.com.br> Hi Kanzelsberger and list I am using 1.0.4 binary as provided on freepascal.org. Looks like I'll have to rebuild the unit mysql and make sure win32 is defined... Whom should I talk to to ask for a fix on the binary distributions form fpc web site? []s, Fernando Lozano > Yes it's v1.5 > > { $Id: mysql.pp,v 1.5 2001/03/13 08:50:38 michael Exp $ } > > and contains > > {$ifdef win32} > Const mysqllib = 'libmysql'; > {$else} > Const mysqllib = 'mysqlclient'; > {$endif} > > {$ifndef win32} > {$linklib c} > {$linklib m} > {$endif}