Re: [fpc-pascal] class constants

2008-01-23 Thread Leonardo M. Ram
Jonathan, I never needed such type of feature, a propossed solution is to create one unit per class, and declare your constants in the implementation section of each unit. Example: unit People interface type TPeople = class .. end; implementation const name = 'default name'; ...

RE: [fpc-pascal] class constants

2008-01-23 Thread Cox, Stuart TRAN:EX
Have a look at http://delphi.about.com/library/weekly/aa031505a.htm as a (not too bad) way to do it in Delphi. FPC too? Stu Cox Project Management Technician Southern Interior Region Ministry of Transportation 342-447 Columbia St., Kamloops, BC V2C 2T3 p: 250-828-4320 f: 250-828-4229 [EMAIL PROT

Re: [fpc-pascal] Linux daemon crashing

2008-01-23 Thread Rob van der Linde
Thanks or that, that seems to start it fine, but it doesn't close the master process and return to my terminal, as the non object oriented version from FPC 2.0.4 does. Any ideas if this is possible with the OOP version? On Wed, 2008-01-23 at 22:54 +0100, Michael Van Canneyt wrote: > > On Thu, 24

Re: [fpc-pascal] Linux daemon crashing

2008-01-23 Thread Michael Van Canneyt
On Thu, 24 Jan 2008, Rob van der Linde wrote: > Hi all, I'm trying to make a Linux daemon using FPC 2.2 > > I tried compiling the bundled daemon.pp (fcl-base/tests), it's an object > oriented version. Compilation is ok, but when I run the daemon I get the > following error: > > exception at 00

[fpc-pascal] Linux daemon crashing

2008-01-23 Thread Rob van der Linde
Hi all, I'm trying to make a Linux daemon using FPC 2.2 I tried compiling the bundled daemon.pp (fcl-base/tests), it's an object oriented version. Compilation is ok, but when I run the daemon I get the following error: exception at 0046BF6C: Options do not allow determining what needs to

[fpc-pascal] class constants

2008-01-23 Thread Jonathan Benedicto
Hello, Does FPC support class constants, and if it doesn't, are there any plans to add this support? Example: type TMyClass = class begin private const MyConst = '123'; end; Jon ___ fpc-pascal maillist - fpc-pascal@lists.fre

Re: [fpc-pascal] Re: [ann] AggPas 2.4 RM3 update

2008-01-23 Thread Graeme Geldenhuys
On 23/01/2008, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > > AggPas is truely brilliant with what it can do! Excellent work Milan! > These are such cool demos!! :-) http://www.aggpas.org/win32/trans_curve1.exe http://www.aggpas.org/win32/trans_curve2.exe Regards, - Graeme - ___

Re: [fpc-pascal] Re: [ann] AggPas 2.4 RM3 update

2008-01-23 Thread Graeme Geldenhuys
On 23/01/2008, Tiziano De Togni <[EMAIL PROTECTED]> wrote: > > "Agg2D API and also TAgg2D for Delphi VCL": can I use TAgg2D with > Lazarus LCL? Can I use the API also with FPC-RTL/FCL applications? Yes you can use AggPas with Lazarus LCL or only FPC. From the previous release of AggPas, it include

Re: [fpc-pascal] Internal Error 200212277

2008-01-23 Thread Damien Gerard
On Jan 23, 2008, at 5:11 PM, Peter Vreman wrote: I often got the error from FPC "Internal Error 200212277" when I build my applications using Lazarus, whatever the version of fpc (<=2.2 others I don't know) It happens only when I choose "build" and not "Build all", so when my apps are not e

Re: [fpc-pascal] Re: FCL-DB/SQLDB docs started

2008-01-23 Thread Chris Kirkpatrick
Yes please, an empty skeleton would be a very useful start. I can send you patches when I have made changes to the XMLs. Regards - Chris Joost van der Sluis wrote: As fcl-db and sqldb are parts of fpc, the documenatation should be in the fpc-docs-repository. I have full write access there so at

Re: [fpc-pascal] Internal Error 200212277

2008-01-23 Thread Peter Vreman
> > I often got the error from FPC "Internal Error 200212277" when I build > my applications using Lazarus, whatever the version of fpc (<=2.2 > others I don't know) > It happens only when I choose "build" and not "Build all", so when my > apps are not entirely rebuild. > > What is it exactly ? > H

Re: [fpc-pascal] Re: FCL-DB/SQLDB docs started

2008-01-23 Thread Joost van der Sluis
Op woensdag 23-01-2008 om 15:16 uur [tijdzone +0200], schreef Adrian Maier: > > > Are there any people still interested in making it possible to have some > > > real > > > docs for sqldb and fcl-db ? > > > > I really would like it if such documentation will arise. But I also > > would like to add

Re: [fpc-pascal] Re: FCL-DB/SQLDB docs started

2008-01-23 Thread Joost van der Sluis
Op woensdag 23-01-2008 om 12:35 uur [tijdzone +], schreef Chris Kirkpatrick: > I have been given commit access to the /docs/xml/lcl/ directory in the > lazarus SVN tree. At present the SQLDb and fcl-db documentation files > would not appear in that pathway, and we would need to find some way

Re: [fpc-pascal] Re: FCL-DB/SQLDB docs started

2008-01-23 Thread Adrian Maier
On Jan 23, 2008 12:47 PM, Joost van der Sluis <[EMAIL PROTECTED]> wrote: > Op woensdag 23-01-2008 om 10:35 uur [tijdzone +0200], schreef Adrian > Maier: > > On Dec 4, 2007 10:41 AM, Adrian Maier <[EMAIL PROTECTED]> wrote: > > > On Dec 3, 2007 2:07 PM, Leonardo M. Ramé <[EMAIL PROTECTED]> wrote: >

Re: [fpc-pascal] Re: FCL-DB/SQLDB docs started

2008-01-23 Thread Chris Kirkpatrick
Hi John, Joost and Adrian - As you might know, I have been trying to get the documentation for parts of the Lazarus Component Library (LCL) into shape, mainly by putting information into the .XML files associated with each Unit, to enable generation of .HTML files using FPDoc. Quite a few elem

[fpc-pascal] Copying array raising exception

2008-01-23 Thread Joao Morais
Hello, The following code: var s1, s2: string; v1, v2: array of byte; begin writeln('testing strings'); s1 := 'test'; s2 := copy(s1, 2, 10); writeln('s2: "', s2, '" which length is ', length(s2)); s2 := copy(s1, 10, 10); writeln('s2: "', s2, '" which length is ', length(s2));

Re: [fpc-pascal] problem with interface (OOP not widget)

2008-01-23 Thread Bee
With wonder, I commented line 56. Then the compiler complained with this message: test_intf_query.pas(66,14) Fatal: Internal error 200408162 So, may I made a conclusion that this is a bug? -Bee- has Bee.ography at: http://beeography.wordpress.com

Re: [fpc-pascal] Re: FCL-DB/SQLDB docs started

2008-01-23 Thread John
Adrian Maier wrote: Are there any people still interested in making it possible to have some real docs for sqldb and fcl-db ? If so, let's organize ourselves and see what needs to be done . I am very interested in the subject but I can't do it myself alone : if I knew enough about sqldb I wou

Re: [fpc-pascal] Re: FCL-DB/SQLDB docs started

2008-01-23 Thread Joost van der Sluis
Op woensdag 23-01-2008 om 10:35 uur [tijdzone +0200], schreef Adrian Maier: > On Dec 4, 2007 10:41 AM, Adrian Maier <[EMAIL PROTECTED]> wrote: > > On Dec 3, 2007 2:07 PM, Leonardo M. Ramé <[EMAIL PROTECTED]> wrote: > > > I like the idea, can you start by creating the section's skeleton? > > > > He

[fpc-pascal] debugger exited due to signal 5

2008-01-23 Thread Ezequiel Tacsir
When I run the 'go' I keep on receiving this error message: 'exited with status 5.The debugger is still running.' What can I do to solve it? any idea what is causing the problem? Just in case,the console reads: [Session started at 2008-01-22 16:00:04 +0100.] *2008-01-22 16:00:04.628 Xcode[1511:20

[fpc-pascal] Internal Error 200212277

2008-01-23 Thread Damien Gerard
I often got the error from FPC "Internal Error 200212277" when I build my applications using Lazarus, whatever the version of fpc (<=2.2 others I don't know) It happens only when I choose "build" and not "Build all", so when my apps are not entirely rebuild. What is it exactly ? Have I so

Re: [fpc-pascal] Re: [ann] AggPas 2.4 RM3 update

2008-01-23 Thread Tiziano De Togni
Milan Marusinec ha scritto: For those PASCAL users, who doesn't have a clue about which C/C++ programmers I am talking about in the rest of my announcement, I must admit that I have made a mistake in the content of the message (which was originally addressed to other discussion group). Again, s

Re: [fpc-pascal] Re: FCL-DB/SQLDB docs started

2008-01-23 Thread Adrian Maier
On Dec 4, 2007 10:41 AM, Adrian Maier <[EMAIL PROTECTED]> wrote: > On Dec 3, 2007 2:07 PM, Leonardo M. Ramé <[EMAIL PROTECTED]> wrote: > > I like the idea, can you start by creating the section's skeleton? > > Here is a possible structure of the page.I'm not familiar yet to > working with this

Re: [fpc-pascal] problem with interface (OOP not widget)

2008-01-23 Thread Bee
Arrggg... what a stupid mistake! How can I didn't notice that?! It should be plftOraClob, plftOraBlob (clob and blob)! Thank you, Michael! Thank you again for the ultra fast response! :-D I must slipped my fingers and eyes during conversion to FPC. I saw the code in Delphi doesn't have the

Re: [fpc-pascal] problem with interface (OOP not widget)

2008-01-23 Thread Bee
Arrggg... what a stupid mistake! How can I didn't notice that?! It should be plftOraClob, plftOraBlob (clob and blob)! Thank you, Michael! Thank you again for the ultra fast response! :-D FYI, the fatal internal error still persist. :) -Bee- has Bee.ography at: http://beeography.wordpress

Re: [fpc-pascal] Populate the Format function

2008-01-23 Thread Michael Van Canneyt
On Tue, 22 Jan 2008, Joao Morais wrote: > > Hello, > > I need to send an unknown amount of elements to the Format function (actually > objects within a tlist decendant). I apparently cannot create a dynamic array > of const, is there another way that I am missing? Currently I am parsing the >

Re: [fpc-pascal] problem with interface (OOP not widget)

2008-01-23 Thread Bee
You have plftOraClob, plftOraClob 2 times the same element. This is not allowed. Arrggg... what a stupid mistake! How can I didn't notice that?! It should be plftOraClob, plftOraBlob (clob and blob)! Thank you, Michael! Thank you again for the ultra fast response! :-D -Bee- has Bee.o

Re: [fpc-pascal] problem with interface (OOP not widget)

2008-01-23 Thread Bee
I'm using FPC 2.2.0, 2.2.1, and 2.3.1 on Ubuntu Gutsy i386. I thought it was the problem with FPC for Linux, so I tried it with FPC 2.2.0 on Windows (on exact machine). But, same errors persist on all FPC versions. :( If it is a bug of FPC, I'll file it to Mantis ASAP. Just to make sure it's

Re: [fpc-pascal] problem with interface (OOP not widget)

2008-01-23 Thread Michael Van Canneyt
On Wed, 23 Jan 2008, Bee wrote: > Hi all, > > I got problem with the code below. > > --->8--- begin code --->8--- > > program test_intf_query; > > {$IFDEF FPC} > {$MODE OBJFPC}{$H+} > {$ENDIF} > > uses > Classes; > > type > TPLFieldType = (plftUnknown, plftString, plftSmallint, plftI

[fpc-pascal] problem with interface (OOP not widget)

2008-01-23 Thread Bee
Hi all, I got problem with the code below. --->8--- begin code --->8--- program test_intf_query; {$IFDEF FPC} {$MODE OBJFPC}{$H+} {$ENDIF} uses Classes; type TPLFieldType = (plftUnknown, plftString, plftSmallint, plftInteger, plftWord, plftBoolean, plftFloat, plftCurrency, plftBCD,