Re: [fpc-pascal] Exception withing exception handling

2012-02-17 Thread Chad Berchek
On 2/17/2012 2:26 PM, Sven Barth wrote: On 17.02.2012 18:36, Jorge Aldo G. de F. Junior wrote: so i am inclined to think that exceptions arent supposed to live much longer after their corresponding try except handling block. is that true ? actually, how are exceptions raised ? can i reraise o

[fpc-pascal] TMSSQLConnection - sqlDB component for accessing MS SQL Server

2012-02-17 Thread Marcos Douglas
Hi, As you can see here http://bugs.freepascal.org/view.php?id=17303 the developer known to LacaK developed a new connector for MSSQLServer, descendant of TSQLConnection class, and sent the beta code in 2010-08-30. Some developers discussed the new code here: http://lazarus.freepascal.org/index.p

Re: [fpc-pascal] fphttpclient get an url with colon

2012-02-17 Thread Alberto Narduzzi
No. This does not work with mediawiki. Of course not... that was just an example. A. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Exception withing exception handling

2012-02-17 Thread Sven Barth
On 17.02.2012 18:36, Jorge Aldo G. de F. Junior wrote: I am in the process or writing a interpreter for a specific task (not turing complete, just something to make easier to express something to the computer) and for the erro handling i decided to use plain old exceptions. Code works that way

Re: [fpc-pascal] fphttpclient get an url with colon

2012-02-17 Thread Michael Van Canneyt
On Fri, 17 Feb 2012, Mattias Gaertner wrote: On Fri, 17 Feb 2012 22:03:25 +0200 Alberto Narduzzi wrote: I doubt that mediawiki uses malformed urls. And any browser and http client uses it without warning. as I said, it was out of curiosity. Googling around anyway, shows that there are so

Re: [fpc-pascal] fphttpclient get an url with colon

2012-02-17 Thread Mattias Gaertner
On Fri, 17 Feb 2012 22:03:25 +0200 Alberto Narduzzi wrote: >[...] > Anyway, "http://wiki.lazarus.freepascal.org?Image=Acs_demos.jpg"; is not > that ugly. Probably it's not so sophisticated, but can do the very same job. No. This does not work with mediawiki. Mattias ___

Re: [fpc-pascal] fphttpclient get an url with colon

2012-02-17 Thread Mattias Gaertner
On Fri, 17 Feb 2012 22:03:25 +0200 Alberto Narduzzi wrote: > > I doubt that mediawiki uses malformed urls. > > And any browser and http client uses it without warning. > > as I said, it was out of curiosity. > > Googling around anyway, shows that there are some special characters out > there (

Re: [fpc-pascal] fphttpclient get an url with colon

2012-02-17 Thread Alberto Narduzzi
I doubt that mediawiki uses malformed urls. And any browser and http client uses it without warning. as I said, it was out of curiosity. Googling around anyway, shows that there are some special characters out there (obviously), which are meant to compose the url itself: colon, slash, dot, q.

Re: [fpc-pascal] fphttpclient get an url with colon

2012-02-17 Thread Mattias Gaertner
On Fri, 17 Feb 2012 21:20:29 +0200 Alberto Narduzzi wrote: > The fact it appends a slash at the end is probably because it thinks > it's a path... > > But, just out of curiosity... isn't it a malformed *http* url if it > contains a colon? I doubt that mediawiki uses malformed urls. And any br

Re: [fpc-pascal] fphttpclient get an url with colon

2012-02-17 Thread Alberto Narduzzi
The fact it appends a slash at the end is probably because it thinks it's a path... But, just out of curiosity... isn't it a malformed *http* url if it contains a colon? Cheer, A. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://li

[fpc-pascal] Exception withing exception handling

2012-02-17 Thread Jorge Aldo G. de F. Junior
I am in the process or writing a interpreter for a specific task (not turing complete, just something to make easier to express something to the computer) and for the erro handling i decided to use plain old exceptions. Code works that way : 1 - Everytime an error occurs, an exception is trigger

Re: [fpc-pascal] fphttpclient get an url with colon

2012-02-17 Thread michael . vancanneyt
On Fri, 17 Feb 2012, michael.vancann...@wisa.be wrote: On Fri, 17 Feb 2012, Mattias Gaertner wrote: Hi, When I use TFPHTTPClient to fetch a page with a colon in the file name it appends a slash "/". For example: Client:=TFPHTTPClient.Create(nil); Response:=TMemoryStream.Create; Client

Re: [fpc-pascal] benchmarking functions

2012-02-17 Thread ik
On Fri, Feb 17, 2012 at 10:06, Graeme Geldenhuys wrote: > On 16 February 2012 18:10, ik wrote: >> Hello, >> >> What is the best way measure execution time of functions ? > > > You can also use fpprofiler. Search the wiki for more info. Thank I'll look for it, and also gprof that Henry suggested

Re: [fpc-pascal] benchmarking functions

2012-02-17 Thread Graeme Geldenhuys
On 16 February 2012 18:10, ik wrote: > Hello, > > What is the best way measure execution time of functions ? You can also use fpprofiler. Search the wiki for more info. -- Regards,   - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit

Re: [fpc-pascal] fphttpclient get an url with colon

2012-02-17 Thread michael . vancanneyt
On Fri, 17 Feb 2012, Mattias Gaertner wrote: Hi, When I use TFPHTTPClient to fetch a page with a colon in the file name it appends a slash "/". For example: Client:=TFPHTTPClient.Create(nil); Response:=TMemoryStream.Create; Client.Get('http://wiki.lazarus.freepascal.org/Image:Acs_demos.jp