Re: [fpc-pascal] Compiling a unit loops infinitely

2006-03-21 Thread Tony Pelton
On 3/22/06, Michael Preslar <[EMAIL PROTECTED]> wrote: > > Any help would be appreciated.. http://www.freepascal.org/bugs/showrec.php3?ID=4694 > -- > Michael Tony -- X-SA user ? 0.5.1 is out ! XData 0.1 for X-SA is out ! http://x-plane.dsrts.com http://games.groups.yahoo.com/group/x-plane-foo/

[fpc-pascal] Compiling a unit loops infinitely

2006-03-21 Thread Michael Preslar
I'm trying to compile and cleanup some old Turbo Pascal code.. This one unit of mine, toolbox.pas.. Whenever I go to compile, ppc386.exe loops by printing "Compiling TOOLBOX.pas" over and over again. toolbox.pas doesn't self-reference, and the units toolbox.pas don't use toolbox.pas [I'm not a

[fpc-pascal] asm an Freepascal under AMD 64

2006-03-21 Thread [EMAIL PROTECTED]
I'have some library which use some intel like asm code type_32.pas(125,2) Error: Illegal assembler style specified "INTEL" type_32.pas(146,13) Error: Unknown identifier "EAX" So where do i' find the new gramatical word for use asm ? As i read the doc it seem that there is no more support for

RE: [fpc-pascal] using Crt Functions inside a thread.

2006-03-21 Thread josepascual
How Can I wait for one crt function finish? (gotoxy, write, ...) I could use a semaphore or critical section to protect mulitreading , couldn't it? tia regards > -Mensaje original- > De: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] En nombre de > Peter Vreman > Enviado el: martes, 21

Re: [fpc-pascal] "Streaming" input output in FPC.

2006-03-21 Thread Florian Klaempfl
Geoff Bagley wrote: > Is it possible to "stream" the output of an FPC program into the input > of the next like > the "C" people do on Linux ? They have "stdio.h" . I have never seem > this done in Pascal. Huh? As long as you don't use units like crt write(ln) and read(ln) works with the standa

[fpc-pascal] "Streaming" input output in FPC.

2006-03-21 Thread Geoff Bagley
Is it possible to "stream" the output of an FPC program into the input of the next like the "C" people do on Linux ? They have "stdio.h" . I have never seem this done in Pascal. E.G. prog1 | prog2 | prog3 etc. where "|" is the pipe for passing the results from one prog to he next. Be

Re: [fpc-pascal] using Crt Functions inside a thread.

2006-03-21 Thread Peter Vreman
> Hi, > > I have a little program working with Crt units without problem. I have > change the print way form, I have pushing Crt Commands inen Fifo (GotoXY, > ClrScr, ClrEol, Write,...) and I have created a Thread > class to pop this commands to execute it. > Problem seems to be cursor position in

[fpc-pascal] using Crt Functions inside a thread.

2006-03-21 Thread josepascual
Hi, I have a little program working with Crt units without problem. I have change the print way form, I have pushing Crt Commands inen Fifo (GotoXY, ClrScr, ClrEol, Write,...) and I have created a Thread class to pop this commands to execute it. Problem seems to be cursor position in tty which is

Re: [fpc-pascal] converting TjanSQL

2006-03-21 Thread Bisma Jayadi
That's a good point ;) But at least for linux/i386 it should be enough. Since I knew FPC and the good feeling of knowing that my applications are able to run on more than 9 platforms, I prefer my applications at least can be run on 3 platforms, they are: win32-i386, linux-i386 (all distros), a

Re: [fpc-pascal] converting TjanSQL

2006-03-21 Thread Florian Klaempfl
Bisma Jayadi wrote: >> This is not true. FPC can usually use inline assembler written for >> delphi when >> {$mode delphi} and {$asmmode intel} is used. > > It probably is, though when I use these modes, FPC failed to compile > TjanSQL class. I couldn't fix it ('cause I ain't an assembler expert).

Re: [fpc-pascal] converting TjanSQL

2006-03-21 Thread Bisma Jayadi
This is not true. FPC can usually use inline assembler written for delphi when {$mode delphi} and {$asmmode intel} is used. It probably is, though when I use these modes, FPC failed to compile TjanSQL class. I couldn't fix it ('cause I ain't an assembler expert). And I also don't want it's sol

Re: [fpc-pascal] converting TjanSQL

2006-03-21 Thread Florian Klaempfl
Michael Van Canneyt wrote: > > > On Mon, 20 Mar 2006, Bisma Jayadi wrote: > >> Hi all... >> >> I found TjanSQL from http://jansfreeware.com. It's a small-text-based >> custom database component with SQL ability. The database itself is a >> comma separated value (csv) text file. I think this comp

Re: [fpc-pascal] converting TjanSQL

2006-03-21 Thread Bisma Jayadi
You forgot the {$H+} in jansql: the strings are different. Stupid me! :D I missed the '$' in janSQL unit! :p I wrote {H+} instead of {$H+}. Never thought that kind of mistake. I've search hints from FPC docs for hours for more "intellegent" mistake. :D Problem solved! janSQL and the demo app

Re: [fpc-pascal] converting TjanSQL

2006-03-21 Thread Marco van de Voort
> > Can you give the whole error message ? > > FEParser.onGetVariable:=getvariable; > > C:\Trash\janSQL\components\janSQL.pas(462,40) Error: Incompatible type for > arg > no. 1: Got "TjanSQL.getvariable(TObject,const AnsiString,var Variant,var > Boolean)", expected " ShortString,var Variant,v

Re: [fpc-pascal] converting TjanSQL

2006-03-21 Thread Michael Van Canneyt
On Tue, 21 Mar 2006, Bisma Jayadi wrote: Can you give the whole error message ? FEParser.onGetVariable:=getvariable; C:\Trash\janSQL\components\janSQL.pas(462,40) Error: Incompatible type for arg no. 1: Got "TjanSQL.getvariable(TObject,const AnsiString,var Variant,var Boolean)", expected

Re: [fpc-pascal] converting TjanSQL

2006-03-21 Thread Bisma Jayadi
> Can you give the whole error message ? FEParser.onGetVariable:=getvariable; C:\Trash\janSQL\components\janSQL.pas(462,40) Error: Incompatible type for arg no. 1: Got "TjanSQL.getvariable(TObject,const AnsiString,var Variant,var Boolean)", expected "ShortString,var Variant,var Boolean) of obj

[fpc-pascal] range check errors

2006-03-21 Thread Пётр Косаревский
Is it a bug or just a feature, that when compiled with -gcl options, program does not report line of range check error (sorry, but I have neither tested it thoroughly nor checked compiler sources)? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal

Re: [fpc-pascal] converting TjanSQL

2006-03-21 Thread Michael Van Canneyt
On Tue, 21 Mar 2006, Bisma Jayadi wrote: Turn on delphi mode for the package and/or add {$mode delphi} everywhere. (big chance that you have to change the @'s back). I just did this, turn on Delphi mode on every single unit. To make sure the class is compiled correctly, though I'd change th

Re: [fpc-pascal] converting TjanSQL

2006-03-21 Thread Bisma Jayadi
FEParser.onGetVariable:=getvariable(); Not work. The same error message. :( -Bee- has Bee.ography at http://beeography.wordpress.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pasca

Re: [fpc-pascal] converting TjanSQL

2006-03-21 Thread Michael Van Canneyt
On Tue, 21 Mar 2006, Bisma Jayadi wrote: Turn on delphi mode for the package and/or add {$mode delphi} everywhere. (big chance that you have to change the @'s back). I just did this, turn on Delphi mode on every single unit. To make sure the class is compiled correctly, though I'd change th

Re: [fpc-pascal] converting TjanSQL

2006-03-21 Thread Bisma Jayadi
Turn on delphi mode for the package and/or add {$mode delphi} everywhere. (big chance that you have to change the @'s back). I just did this, turn on Delphi mode on every single unit. To make sure the class is compiled correctly, though I'd change them later to FPC_OBJFPC mode for better and c

Re: [fpc-pascal] converting TjanSQL

2006-03-21 Thread Marco van de Voort
> > If you are referring to the posstr functions, try replacing them with > > the PosEx() function in strutils. > > - And I have to add Delphi mode directive on mwStringHashList unit, because > without it FPC failed to compile the unit (because some kind of pointer > things > related). Turn on