Re: [fpc-pascal] regex vs synregexpr unit

2010-06-06 Thread Bihar Anwar
OK guys, after contemplating all your suggestions, I decide to follow the SynEdit way, that is, synregexpr unit. I suppose this unit tends to get more maintenance in the future. Concerning the C++ PCRE library, it is the most full-featured reg-expr implementation, but calling C++ functions from

Re: [fpc-pascal] android basic question

2010-06-06 Thread Jonas Maebe
On 06 Jun 2010, at 23:23, Thierry Bothorel wrote: > I started with Mathiew Mead JNI headers translation for Delphi/Kylix, > that explains libc use. I did not found any JNI headers translation for > Freepascal. Does this mean that the only solution is to update > JNI.pas so that it uses Unix u

Re: [fpc-pascal] android basic question

2010-06-06 Thread Thierry Bothorel
Jonas Maebe a écrit : > That package only works under Linux/i386, because it is only intended as a > replacement for the Kylix libc unit. It cannot and will never work on any > other platform. It is also not compiled by the Makefile for Linux/ARM. So it > is normal that if you circumvent the mak

Re: [fpc-pascal] android basic question

2010-06-06 Thread Jonas Maebe
On 06 Jun 2010, at 17:38, Thierry Bothorel wrote: > I have errors in ...fpsrc/2.5.1/packages/libc/ That package only works under Linux/i386, because it is only intended as a replacement for the Kylix libc unit. It cannot and will never work on any other platform. It is also not compiled by

Re: [fpc-pascal] android basic question

2010-06-06 Thread Thierry Bothorel
Marco van de Voort a écrit : > In our previous episode, Thierry Bothorel said: > >> After googling I did not found clear answers, but my understanding is >> that it is not possible to build natives libraries for Android without >> writing a completely new libc translation for bionic ? >> >

Re[8]: [fpc-pascal] Mozilla XPCOM

2010-06-06 Thread José Mejuto
Hello FPC-Pascal, Friday, June 4, 2010, 2:50:24 PM, you wrote: >> JM> Maybe you are executing Pascal code in threads that have not been [...] >> Not, well, not at least on intention but maybe is the XPCOM which is >> If that's the case is any kind of workaround ? JM> No, it cannot be worked aroun

Re: [fpc-pascal] Firebird stored procedure exceptions generate access violation

2010-06-06 Thread Jim
On 6-6-2010 19:06, Jim wrote: > On 6-6-2010 16:06, Michael Van Canneyt wrote: >> >> >> On Sun, 6 Jun 2010, Jim wrote: >>> (gdb) break fpc_raiseexception >>> Breakpoint 1 at 0x40a9c6 >>> .. debug output >>> Breakpoint 1, 0x0040a9c6 in fpc_raiseexception () >>> (gdb) backtrace >>> #0 0x0040a

Re: [fpc-pascal] Firebird stored procedure exceptions generate access violation

2010-06-06 Thread Jim
On 6-6-2010 16:06, Michael Van Canneyt wrote: > > > On Sun, 6 Jun 2010, Jim wrote: >> (gdb) break fpc_raiseexception >> Breakpoint 1 at 0x40a9c6 >> .. debug output >> Breakpoint 1, 0x0040a9c6 in fpc_raiseexception () >> (gdb) backtrace >> #0 0x0040a9c6 in fpc_raiseexception () >> #1 0x0

Re: [fpc-pascal] Firebird stored procedure exceptions generate access violation

2010-06-06 Thread Michael Van Canneyt
On Sun, 6 Jun 2010, Jim wrote: (gdb) break fpc_raiseexception Breakpoint 1 at 0x40a9c6 .. debug output Breakpoint 1, 0x0040a9c6 in fpc_raiseexception () (gdb) backtrace #0 0x0040a9c6 in fpc_raiseexception () #1 0x0043d284 in IBCONNECTION_TIBCONNECTION_$__CHECKERROR$ANSISTRING$PISC_STA

Re: [fpc-pascal] Firebird stored procedure exceptions generate access violation

2010-06-06 Thread Jim
On 5-6-2010 10:47, Michael Van Canneyt wrote: > It might be worth putting all parameters in a record definition and pass > the > record to your function. That makes the procedure declaration somewhat more > manageable and understandable. (and definitely more efficent as well). Progress! As you su

Re: [fpc-pascal] regex vs synregexpr unit

2010-06-06 Thread Flávio Etrusco
http://delphi.about.com/od/toppicks/tp/delphi-regular-expressions.htm The regex unit in SynEdit is an old version of the code from regexpstudio.com (which seems to be offline) is said to be very slow for processing large sets of data, like a whole file. In SynEdit it`s used to process single lines

Re: [fpc-pascal] regex vs synregexpr unit

2010-06-06 Thread Juha Manninen
Hi > Speed is important to me, but reg-expr features is important as well. > Actually, I want to include reg-expr as an alternative search mode in > my general-purpose file search unit. Then the SynEdit's version of regexp should be fast enough. SynEdit editor in Lazarus for example uses it and i

Re: [fpc-pascal] android basic question

2010-06-06 Thread Marco van de Voort
In our previous episode, Thierry Bothorel said: > > After googling I did not found clear answers, but my understanding is > that it is not possible to build natives libraries for Android without > writing a completely new libc translation for bionic ? I don't fully understand. libc's are not tran

Re: [fpc-pascal] Firebird stored procedure exceptions generate access violation

2010-06-06 Thread Jim
On 6-6-2010 11:54, Michael Van Canneyt wrote: > Maybe there is some special handling required for firebird exceptions, > although that would surprise me. Normally I'd simply expect this to > be a special error code, and the message of the exception as the error > message... > > Michael. Found a pd

Re: [fpc-pascal] Firebird stored procedure exceptions generate access violation

2010-06-06 Thread Jim
On 6-6-2010 11:54, Michael Van Canneyt wrote: > On Sun, 6 Jun 2010, Jim wrote: >> On 5-6-2010 12:23, Michael Van Canneyt wrote: >>> On Sat, 5 Jun 2010, Jim wrote: On 5-6-2010 10:47, Michael Van Canneyt wrote: > On Sat, 5 Jun 2010, Jim wrote: > > Is the firebird UDF written in fpc ?

Re: [fpc-pascal] regex vs synregexpr unit

2010-06-06 Thread Bihar Anwar
On June 6, 2010 3:06:06 PM, Graeme Geldenhuys wrote: > I have looked into this as well, about 2 months ago. From my initial > research it seems the regex unit included with FCL is not as > feature-complete as the one in SynEdit. On June 6, 2010 3:54:53 PM, Juha Manninen wrote: >I also chose SynEdi

Re: [fpc-pascal] Firebird stored procedure exceptions generate access violation

2010-06-06 Thread Michael Van Canneyt
On Sun, 6 Jun 2010, Jim wrote: On 5-6-2010 12:23, Michael Van Canneyt wrote: On Sat, 5 Jun 2010, Jim wrote: On 5-6-2010 10:47, Michael Van Canneyt wrote: On Sat, 5 Jun 2010, Jim wrote: Program received signal SIGSEGV, Segmentation fault. 0x0001ad7d in FINALIZE$_DATEUTILS () (gdb)

[fpc-pascal] android basic question

2010-06-06 Thread Thierry Bothorel
Hi, Just a couple of questions. I wanted to play with android native development kit to see if I can replace the basic C "hello world" library from NDK samples with a fpc one. After "fighting" with cross compile, JNI headers, i'm stuck now with Android libc implementation (bionic). After googl

Re: [fpc-pascal] Crosscompile FPC from Win32 to Linux

2010-06-06 Thread Sven Barth
Hi! Am 04.06.2010 18:55, schrieb Andreas Berger: I have a stable cgi program running in windows (no libraries - simple writeln). However, our web host is in linux. Is there a simple way for me to cross-compile the app? or is it easier to learn how to use linux and do it there? I saw a page how t

Re: [fpc-pascal] Firebird stored procedure exceptions generate access violation

2010-06-06 Thread Jim
On 5-6-2010 12:23, Michael Van Canneyt wrote: > On Sat, 5 Jun 2010, Jim wrote: >> On 5-6-2010 10:47, Michael Van Canneyt wrote: >>> On Sat, 5 Jun 2010, Jim wrote: >> >> Program received signal SIGSEGV, Segmentation fault. >> 0x0001ad7d in FINALIZE$_DATEUTILS () >> (gdb) backtrace >> #0 0x

Re: [fpc-pascal] regex vs synregexpr unit

2010-06-06 Thread Juha Manninen
I also chose SynEdit for Lazarus Delphi converter for some reason. (I think it was the first hit when searching "regexp" from Lazarus code base). It works well. I would guess the other choices work well, too. About the speed difference: I don't believe there is any huge difference. Please remembe

Re: [fpc-pascal] regex vs synregexpr unit

2010-06-06 Thread Graeme Geldenhuys
On 05/06/2010, Bihar Anwar wrote: > I've search fpc mailing list about this matter, I found they were discussed > a long time ago (2006), and I still didn't have a conclusion about which one I have looked into this as well, about 2 months ago. From my initial research it seems the regex unit inclu