Re: [fpc-pascal] using exceptions

2011-12-19 Thread Bernd
2011/12/19 Marcos Douglas : >> The usage of exception is very costly in performance, and there for should >> use only on specific events imho. IMHO it has its legitimate uses. Thee are even languages (Python for example) where it is considered totally normal to use exceptions all over the place a

Re: [fpc-pascal] using exceptions

2011-12-19 Thread Marcos Douglas
On Mon, Dec 19, 2011 at 4:53 PM, ik wrote: > Hello, > > Exceptions like the name suggested, is to mark something that you are not > suppose to expect. > For example while getting a data something went wrong, like disconnection, > wrong size of data etc... > > The usage of exception is very costly

Re: [fpc-pascal] using exceptions

2011-12-19 Thread Marco van de Voort
In our previous episode, ik said: > But we use exceptions even on places such as StrToInt, when the string is > not an integer number, but we can expect to either have a number or > something else. So why use an exception there ? Because much used routines like strtoint are often used without prop

[fpc-pascal] using exceptions

2011-12-19 Thread ik
Hello, Exceptions like the name suggested, is to mark something that you are not suppose to expect. For example while getting a data something went wrong, like disconnection, wrong size of data etc... The usage of exception is very costly in performance, and there for should use only on specific

Re: [fpc-pascal] Re: Testing applications with FPCUnit

2011-12-19 Thread Graeme Geldenhuys
On 19 December 2011 15:18, leledumbo <> wrote: > Graeme, I think you should at least make a wiki page for this project. I also > just know about it here. I created a page with some initial information and a couple of screenshots. I'll extend the details and usage later. http://wiki.freepa

Re: [fpc-pascal] Re: Testing applications with FPCUnit

2011-12-19 Thread Marcos Douglas
On Mon, Dec 19, 2011 at 10:22 AM, Graeme Geldenhuys wrote: > On 19 December 2011 15:18, leledumbo  wrote: >> Graeme, I think you should at least make a wiki page for this project. I also >> just know about it here. > > Good idea - I'll reserve a page in the FPC wiki for this. > [ You know programm

Re: [fpc-pascal] Re: Testing applications with FPCUnit

2011-12-19 Thread Graeme Geldenhuys
On 19 December 2011 15:18, leledumbo wrote: > Graeme, I think you should at least make a wiki page for this project. I also > just know about it here. Good idea - I'll reserve a page in the FPC wiki for this. [ You know programmers, we hate to document things. ;-) ] -- Regards,   - Graeme -

[fpc-pascal] Re: Testing applications with FPCUnit

2011-12-19 Thread leledumbo
Graeme, I think you should at least make a wiki page for this project. I also just know about it here. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Testing-applications-with-FPCUnit-tp5080219p5086098.html Sent from the Free Pascal - General mailing list archiv

Re: [fpc-pascal] FPC for ARM

2011-12-19 Thread Marco van de Voort
In our previous episode, Thomas Schatzl said: > > Does it mean an assembler is always needed with ARM? In my > > understanding x86 based PCs don't need a separate assembler with FPC. > > "apt-get install as" didn't install anything. > > Afaik only the Windows platforms have an internal assembler a

Re: [fpc-pascal] FPC for ARM

2011-12-19 Thread Thomas Schatzl
Hi, On Mon, 2011-12-19 at 13:16 +0200, Juha Manninen wrote: > 2011/11/28 Henry Vermaak > There is an arm release for 2.6.0rc1, but it was built using > old binutils (last time I checked, at least): > > ftp://freepascal.stack.nl/pub/fpc/beta/2.6.0-rc1/arm-linux/ >

Re: [fpc-pascal] FPC for ARM

2011-12-19 Thread Henry Vermaak
On 19/12/11 11:16, Juha Manninen wrote: The compiler itself works but assembler is missing. See : --- root@ubuntu:/usr/share/doc/fpc-2.6.0/examples/text# fpc hello.pp Free Pascal Compiler version 2.6.0rc1 [2011/10/20] for arm Copyright (c) 1993-2011 by Florian Klaempfl and others Target OS: Linux

Re: [fpc-pascal] FPC for ARM

2011-12-19 Thread Juha Manninen
2011/11/28 Henry Vermaak > There is an arm release for 2.6.0rc1, but it was built using old binutils > (last time I checked, at least): > > ftp://freepascal.stack.nl/pub/**fpc/beta/2.6.0-rc1/arm-linux/ > I finally got into installing a

Re: [fpc-pascal] Testing applications with FPCUnit

2011-12-19 Thread Marcos Douglas
On Mon, Dec 19, 2011 at 5:26 AM, Graeme Geldenhuys wrote: > On 17 December 2011 18:03, Luciano de Souza  wrote: >> The idea of FPCUnit is really wonderful. I really would like to use it, but >> Lazarus dependencies can complicate a lot. > > I have been a long time user of FPCUnit and even helped t

Re: [fpc-pascal] TFPHTTPClient Post works with jetty, fails with tomcat

2011-12-19 Thread michael . vancanneyt
On Mon, 19 Dec 2011, Mattias Gaertner wrote: On Mon, 19 Dec 2011 09:27:16 +0100 (CET) michael.vancann...@wisa.be wrote: On Mon, 19 Dec 2011, Mattias Gaertner wrote: Hi, For some reason TFPHTTPClient.Post hangs when accessing a "solr" server over "tomcat". It works with "solr" over "jett

Re: [fpc-pascal] TFPHTTPClient Post works with jetty, fails with tomcat

2011-12-19 Thread Mattias Gaertner
On Mon, 19 Dec 2011 09:27:16 +0100 (CET) michael.vancann...@wisa.be wrote: > > > On Mon, 19 Dec 2011, Mattias Gaertner wrote: > > > Hi, > > > > For some reason TFPHTTPClient.Post hangs when accessing a "solr" > > server over "tomcat". It works with "solr" over "jetty". > > "curl" works fine wit

Re: [fpc-pascal] debian control files for fpc

2011-12-19 Thread Marco van de Voort
In our previous episode, David Emerson said: > > and, putting that debian directory into my own source directory... > (which I got from sourceforge, > http://sourceforge.net/projects/freepascal/files/Source/2.4.4/fpc-2.4.4.source.tar.gz) You need the fpcbuild archive that is in the same location

Re: [fpc-pascal] TFPHTTPClient Post works with jetty, fails with tomcat

2011-12-19 Thread michael . vancanneyt
On Mon, 19 Dec 2011, Mattias Gaertner wrote: Hi, For some reason TFPHTTPClient.Post hangs when accessing a "solr" server over "tomcat". It works with "solr" over "jetty". "curl" works fine with both, so I guess the tomcat server works normally. Here is the code: client:=TFPHTTPClient.Cre

Re: [fpc-pascal] Testing applications with FPCUnit

2011-12-19 Thread Graeme Geldenhuys
On 17 December 2011 18:03, Luciano de Souza wrote: > The idea of FPCUnit is really wonderful. I really would like to use it, but > Lazarus dependencies can complicate a lot. I have been a long time user of FPCUnit and even helped to maintain and improve it over the years. It has some design flaws