Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-21 Thread Mattias Gaertner
On Mon, 20 Feb 2012 23:59:18 -0500 Andrew Haines andrewd...@aol.com wrote: On 02/20/12 18:00, Mattias Gaertner wrote: Hi, I'm using TChmWriter to pack some html files into a chm file. The index works. I don't have a TOC. Now I want a full text search. I set Writer.FullTextSearch

Re: [fpc-pascal] Re: Logging full runtime-error/exception backtrace

2012-02-21 Thread Sven Barth
Am 20.02.2012 23:37 schrieb leledumbo leledumbo_c...@yahoo.co.id: The resolution of file and address can only be done if your code is a) compiled with debug info and b) some code is available that can translate the debug info to the output. The first is done by -g, while the second is done

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-21 Thread Žilvinas Ledas
I think you should set chmPrj.MakeSearchable := true; (where chmPrj: TChmProject;). At least I set it (with an ~1 year old lazarus+fpc and lhelp build) and I can search for (complete) words in generated chm using lhelp. (I think I do not set FullTextSearch to true though). Regards, Žilvinas

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-21 Thread Mattias Gaertner
Žilvinas Ledas zilvinas.le...@dict.lt hat am 21. Februar 2012 um 10:38 geschrieben: I think you should set chmPrj.MakeSearchable := true; (where chmPrj: TChmProject;). At least I set it (with an ~1 year old lazarus+fpc and lhelp build) and I can search for (complete) words in generated chm

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-21 Thread Marco van de Voort
In our previous episode, Mattias Gaertner said: I think you should set chmPrj.MakeSearchable := true; (where chmPrj: TChmProject;). At least I set it (with an ~1 year old lazarus+fpc and lhelp build) and I can search for (complete) words in generated chm using lhelp. (I think I do not

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-21 Thread Andrew Haines
On 02/21/2012 03:18 AM, Mattias Gaertner wrote: On Mon, 20 Feb 2012 23:59:18 -0500 Andrew Hainesandrewd...@aol.com wrote: 30% bigger than the size of the uncompressed html files?! Yes. does lazarus/docs/html/build_lcl_docs --outfmt chm work for you? I get a 8mb lcl.chm file. if --outfmt

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-21 Thread Mattias Gaertner
Andrew Haines andrewd...@aol.com hat am 21. Februar 2012 um 15:24 geschrieben: On 02/21/2012 03:18 AM, Mattias Gaertner wrote: On Mon, 20 Feb 2012 23:59:18 -0500 Andrew Hainesandrewd...@aol.com wrote: 30% bigger than the size of the uncompressed html files?! Yes. does

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-21 Thread Felipe Monteiro de Carvalho
On Tue, Feb 21, 2012 at 4:08 PM, Mattias Gaertner nc-gaert...@netcologne.de wrote: Bingo. It does not: Generating Table of contents... Generating Index... Finishing compressing... Exception at 0050057F: EAccessViolation: Access violation. docs/html/lcl/lcl.chm is 0 bytes. Which

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-21 Thread Felipe Monteiro de Carvalho
On Tue, Feb 21, 2012 at 4:37 PM, Mattias Gaertner nc-gaert...@netcologne.de wrote: What do you mean with Those errors? AVs in fpdoc I'm pretty sure 2.6.0 can create AVs too. oh ... I haven't yet had any AV in fpdoc from 2.6.0 while I had them all the time in 2.4.x I guess your mileage can

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-21 Thread Marco van de Voort
In our previous episode, Felipe Monteiro de Carvalho said: What do you mean with Those errors? AVs in fpdoc Cough r19903, cough :-) (not yet merged to 2.6.x) I haven't seen any since. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] Reactor Pattern for Pascal ?

2012-02-21 Thread ik
Hello, I'm looking for an open source based implementation (but not limiting for commercial usage) of Reactor Pattern (http://en.wikipedia.org/wiki/Reactor_pattern) to have something like Ruby's EventMachine . Does anyone know of such implementation ? Thanks, Ido

[fpc-pascal] Re: Logging full runtime-error/exception backtrace

2012-02-21 Thread leledumbo
So the savest way to ensure that BackTraceStrFunc returns more than just the address us to use -gl I think I'm not clear enough to say that I have used -gl for this, and I don't get the line information. I've tried this on 2 places: ExceptProc and TApplication.OnException. -- View this message

Re: [fpc-pascal] Re: Logging full runtime-error/exception backtrace

2012-02-21 Thread Martin
On 21/02/2012 16:14, leledumbo wrote: So the savest way to ensure that BackTraceStrFunc returns more than just the address us to use -gl I think I'm not clear enough to say that I have used -gl for this, and I don't get the line information. I've tried this on 2 places: ExceptProc and

Re: [fpc-pascal] Re: Logging full runtime-error/exception backtrace

2012-02-21 Thread Everton Vieira
Em 21/02/2012, às 14:20, Martin escreveu: On 21/02/2012 16:14, leledumbo wrote: So the savest way to ensure that BackTraceStrFunc returns more than just the address us to use -gl I think I'm not clear enough to say that I have used -gl for this, and I don't get the line information. I've

Re: [fpc-pascal] Re: Logging full runtime-error/exception backtrace

2012-02-21 Thread Martin
On 21/02/2012 20:28, Everton Vieira wrote: Em 21/02/2012, às 14:20, Martin escreveu: On 21/02/2012 16:14, leledumbo wrote: So the savest way to ensure that BackTraceStrFunc returns more than just the address us to use -gl I think I'm not clear enough to say that I have used -gl for this,

Re: [fpc-pascal] Re: Logging full runtime-error/exception backtrace

2012-02-21 Thread Everton Vieira
Em 21/02/2012, às 18:35, Martin escreveu: On 21/02/2012 20:28, Everton Vieira wrote: Em 21/02/2012, às 14:20, Martin escreveu: On 21/02/2012 16:14, leledumbo wrote: So the savest way to ensure that BackTraceStrFunc returns more than just the address us to use -gl I think I'm not clear

Re: [fpc-pascal] Logging full runtime-error/exception backtrace

2012-02-21 Thread Everton Vieira
Em 21/02/2012, às 18:38, Everton Vieira escreveu: Em 21/02/2012, às 18:35, Martin escreveu: On 21/02/2012 20:28, Everton Vieira wrote: Em 21/02/2012, às 14:20, Martin escreveu: On 21/02/2012 16:14, leledumbo wrote: So the savest way to ensure that BackTraceStrFunc returns more than

[fpc-pascal] Outputting a set for debugging

2012-02-21 Thread Mark Morgan Lloyd
What type can I cast a set (actually Lazarus's TShiftState) to, in order to be compatible with IntToHex() for debugging output? Or is there some other preferred procedure? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or

Re: [fpc-pascal] Outputting a set for debugging

2012-02-21 Thread Mattias Gaertner
On Tue, 21 Feb 2012 21:19:52 + Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk wrote: What type can I cast a set (actually Lazarus's TShiftState) to, in order to be compatible with IntToHex() for debugging output? Or is there some other preferred procedure? Why not use

Re: [fpc-pascal] Outputting a set for debugging

2012-02-21 Thread Mark Morgan Lloyd
Mattias Gaertner wrote: On Tue, 21 Feb 2012 21:19:52 + Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk wrote: What type can I cast a set (actually Lazarus's TShiftState) to, in order to be compatible with IntToHex() for debugging output? Or is there some other preferred procedure?

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-21 Thread Mattias Gaertner
On Tue, 21 Feb 2012 16:08:43 +0100 (CET) Mattias Gaertner nc-gaert...@netcologne.de wrote: Andrew Haines andrewd...@aol.com hat am 21. Februar 2012 um 15:24 geschrieben: [...] Your chm file should not be bigger than the the uncompressed files unless you are writing only a couple of tiny

Re: [fpc-pascal] Re: level curve and surface generation code

2012-02-21 Thread Jorge Aldo G. de F. Junior
i can translate for you if you need 2012/2/20 Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com: On Mon, Feb 20, 2012 at 3:59 PM, leledumbo leledumbo_c...@yahoo.co.id wrote: Something like http://www.sulaco.co.za/opengl_project_terrain_generation_using_heightmaps.htm terrain ?

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-21 Thread Andrew Haines
On 02/21/12 17:40, Mattias Gaertner wrote: On Tue, 21 Feb 2012 16:08:43 +0100 (CET) Mattias Gaertner nc-gaert...@netcologne.de wrote: Andrew Haines andrewd...@aol.com hat am 21. Februar 2012 um 15:24 geschrieben: [...] Your chm file should not be bigger than the the uncompressed files

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-21 Thread Mattias Gaertner
On Tue, 21 Feb 2012 22:25:08 -0500 Andrew Haines andrewd...@aol.com wrote: On 02/21/12 17:40, Mattias Gaertner wrote: On Tue, 21 Feb 2012 16:08:43 +0100 (CET) Mattias Gaertner nc-gaert...@netcologne.de wrote: [...] But it only finds whole words. :- And clicking on a page gives a black

[fpc-pascal] Int64 multiplication error

2012-02-21 Thread Bogdan
Hello I have a problem with int64 multiplication: program tstint64; {$MODE objfpc} {$H+} uses SysUtils; var i: integer; y: int64; begin y := 1; for i := 1 to 10 do begin writeln (i, ' y=', IntToHex(y,16)); y := y * 10; end; end. The program is compiled with crosscompiler

[fpc-pascal] fpdoc slow on Linux x64... tweaking?

2012-02-21 Thread Reinier Olislagers
Running fpcup on Linux x86, Linux x64 with FPC fixes_2_6 Building LCL chm docs with build_lcl_docs, which calls fpdoc: On x86, seems to works ok. On x64, takes a long time. fpdoc takes a huge amount of CPU (perhaps memory as well, haven't looked). I suspect the reason the doc generation is slow