Re: [fpc-pascal] Fast HTML Parser

2014-08-07 Thread Graeme Geldenhuys
On 2014-08-06 21:54, Marcos Douglas wrote: > I know the tokens to search, but the HTML could be very different each other. > I can't use a external tool. Need to be a application (that already exists). Take a look at POWtils (aka PWU or PSP or Pascal Server Pages) created by somebody known as Z505

Re: [fpc-pascal] Fast HTML Parser

2014-08-07 Thread Graeme Geldenhuys
On 2014-08-06 21:54, Marcos Douglas wrote: > I know the tokens to search, but the HTML could be very different each other. > I can't use a external tool. Need to be a application (that already exists). It seems a copy of the Fast HTML Parser unit I spoke of has made its way into the FPC source cod

Re: [fpc-pascal] Fast HTML Parser

2014-08-07 Thread Michael Schnell
On 08/06/2014 07:54 PM, Rainer Stratmann wrote: It's not that difficult to write yourself. In fact, my son once did write (using Delphi) a parser that creates a list of hierarchically linked objects from HTML code and also can write a HTML file from this structure. So you can read a file, us

[fpc-pascal] why dynamic array created in constructor not automatically free in destructor

2014-08-07 Thread Dennis Poon
I have a class like; TMyClass=class public ar : array of integer; constructor Create; destructor destroy;override; end; TMyClass.Create; begin inherited; SetLength(ar, 100); end; TMyClass.Destroy; begin ar := nil;//<--- this is needed otherwise a memory leak is reporte

Re: [fpc-pascal] best? safest? fastest?

2014-08-07 Thread Mark Morgan Lloyd
waldo kitty wrote: On 8/6/2014 4:08 AM, Mark Morgan Lloyd wrote: waldo kitty wrote: i suspect this is going to be like the long-standing joke of cheap, fast, stable: choose two over the years, i've seen two schools of code for dealing with dates... years, specifically... one school is str

Re: [fpc-pascal] why dynamic array created in constructor not automatically free in destructor

2014-08-07 Thread Jürgen Hestermann
Am 2014-08-07 10:21, schrieb Dennis Poon: > TMyClass=class > public > ar : array of integer; > constructor Create; > destructor destroy;override; > end; > TMyClass.Create; > begin >inherited; >SetLength(ar, 100); > end; > TMyClass.Destroy; > begin >ar := nil;//<--- this is needed

Re: [fpc-pascal] why dynamic array created in constructor not automatically free in destructor

2014-08-07 Thread Michael Van Canneyt
On Thu, 7 Aug 2014, Jürgen Hestermann wrote: Am 2014-08-07 10:21, schrieb Dennis Poon: TMyClass=class public ar : array of integer; constructor Create; destructor destroy;override; end; TMyClass.Create; begin inherited; SetLength(ar, 100); end; TMyClass.Destroy; begin ar := nil;

Re: [fpc-pascal] why dynamic array created in constructor not automatically free in destructor

2014-08-07 Thread Jürgen Hestermann
Am 2014-08-07 11:32, schrieb Michael Van Canneyt: > The compiler frees dynamic arrays. Does this happen too if you declare a dynamic array locally in a function and leave this function? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http:/

Re: [fpc-pascal] why dynamic array created in constructor not automatically free in destructor

2014-08-07 Thread leledumbo
> Does this happen too if you declare a dynamic array locally in a function and leave this function? The global rule: as soon as the reference count reaches 0, the array gets unallocated, wherever it's declared and as long as it's accessed normally without any hack. -- View this message in con

Re: [fpc-pascal] Fast HTML Parser

2014-08-07 Thread Marcos Douglas
On Wed, Aug 6, 2014 at 6:51 PM, Graeme Geldenhuys wrote: > On 2014-08-06 21:54, Marcos Douglas wrote: >> I know the tokens to search, but the HTML could be very different each other. >> I can't use a external tool. Need to be a application (that already exists). > > Take a look at POWtils (aka PWU

Re: [fpc-pascal] Fast HTML Parser

2014-08-07 Thread Marco van de Voort
In our previous episode, Marcos Douglas said: > > It has (or at least had) a very simple to use HTML parser that was very > > fast. If you don't come write with the above URL, I have some release > > archives I know contains the code. Just let me know and I can make it > > available. > > But the f

[fpc-pascal] Scheduled Downtime of main FPC server

2014-08-07 Thread Michael Van Canneyt
Hello, Saturday and sunday, the main FPC server will be out for a short time as mail, html (main FPC website and bugtracker) and SVN services are moved to a new machine. The plan is to move SVN/HTML first, (this should take little time) and move SMTP (mail) later in the weekend. The WIKI, Fo

Re: [fpc-pascal] Fast HTML Parser

2014-08-07 Thread luiz americo pereira camara
You can try http://www.benibela.de/sources_en.html#internettools Luiz 2014-08-07 10:20 GMT-03:00 Marco van de Voort : > In our previous episode, Marcos Douglas said: > > > It has (or at least had) a very simple to use HTML parser that was very > > > fast. If you don't come write with the above