Re: [fpc-devel] FPC -Rintel and -alr options

2012-08-21 Thread ABorka
This is exactly what I needed. -alr -sr -Amasm does it. I just put them into my fpc.cfg . Thanks for all the help guys. On 8/21/2012 00:16, Jonas Maebe wrote: On 21 Aug 2012, at 08:32, ABorka wrote: On 8/20/2012 22:37, Sergei Gorelkin wrote: -R switch controls parsing assembler blocks

Re: [fpc-devel] FPC -Rintel and -alr options

2012-08-21 Thread ABorka
It would be nice to see it work with objdump also, but not a priority. With your help guys I was able to get the needed output using the fpc.cfg and the FPC parameters you guys mentioned. Thanks for the help ...snip... On 8/21/2012 00:19, Sergei Gorelkin wrote: 21.08.2012 10:32, ABorka пишет

Re: [fpc-devel] FPC -Rintel and -alr options

2012-08-21 Thread ABorka
Yes, you are right. I just comment out the options within fpc.cfg after I got the asm files (*.s) for study. On 8/21/2012 00:53, Sven Barth wrote: Am 21.08.2012 09:35, schrieb ABorka: This is exactly what I needed. -alr -sr -Amasm does it. I just put them into my fpc.cfg . Why did you put

[fpc-devel] FPC -Rintel and -alr options

2012-08-20 Thread ABorka
Is there a way to see the generated .s assembly files as Intel syntax instead of the ATT one? The -Rintel flag does not seem to work, or I am doing something wrong. Tried command line and fpc.cfg both, on win32 and win64, latest SVN . ___ fpc-devel

[fpc-devel] 64 bit integer result in Win32 problem

2012-08-19 Thread ABorka
Hi, Win32 .exe compiled on Win64 computer, latest SVN build. I am trying to multiply 2 Integers (Declared as LongInt but sometimes need to use it as LongWord) and put the result into a QWord (64bit unsigned) result variable on Win32. However, it seems that the result is always cut to 32bit.

[fpc-devel] Crosscompiling problem on Win7 64bit

2012-08-17 Thread ABorka
Hi, I was not able to create a cross-compiled version of the SVN trunk FPC for some reason. Win7 64bit (FPC 2.6.0 - 2.7.1) 1. Brand new system, installed the 2.6.0 FPCOK 2. Compiled the default 32bit FPC OK 3. Tried to compile the 64bit cross library and getting the following:

Re: [fpc-devel] Crosscompiling problem on Win7 64bit

2012-08-17 Thread ABorka
] On Behalf Of ABorka Sent: Friday, August 17, 2012 9:05 AM To: FPC developers' list Subject: [fpc-devel] Crosscompiling problem on Win7 64bit Hi, I was not able to create a cross-compiled version of the SVN trunk FPC for some reason. Win7 64bit (FPC 2.6.0 - 2.7.1) 1. Brand new system, installed

Re: [fpc-devel] Crosscompiling problem on Win7 64bit

2012-08-17 Thread ABorka
SVN 22101 works Thx On 8/17/2012 00:45, Thomas Schatzl wrote: Hi, On Fri, 2012-08-17 at 00:37 -0700, ABorka wrote: The error comes during the make all OS_TARGET=win64 CPU_TARGET=x86_64 === error comes here [..] Can you please update to latest or make sure you're on the latest revision

Re: [fpc-devel] FPC bug tracker page is sniffing user agents?

2011-09-25 Thread ABorka
On 9/25/2011 02:54, Felipe Monteiro de Carvalho wrote: Hello, Accessing http://bugs.freepascal.org/login_page.php Using the following user agent (Opera in Mac OS X): Opera/9.80 (Macintosh; Intel Mac OS X 10.6.1; U; en) Presto/2.9.168 Version/11.50 I get: HTTP/1.1 400 Bad Request Date: Sun,

[fpc-devel] Lazarus suddenly creates all config files read only among other things

2011-05-25 Thread ABorka
OK, I just updated to the latest SVN trunk for FPC and Lazarus, and recompiled them on Linux (make clean all as user, then sudo make install). I deleted ~./lazarus to have only the basic packages at first. After executing startlazarus as a user from my home dir like I did a million times

[fpc-devel] SVN 17548 does not compile

2011-05-23 Thread ABorka
sysutils.pp(243,40) Error: Identifier not found Mode sysutils.pp(819,3) Warning: Symbol GetLocaleFormatSettings is not portable sysutils.pp(1277) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted ___ fpc-devel maillist -

[fpc-devel] Latest SVN - make clean gives error in /packages/fppkg

2011-05-14 Thread ABorka
Latest FPC SVN make clean results in: . . . make -C fppkg distclean make[2]: Entering directory `/fpc_svn/packages/fppkg' make[2]: *** No rule to make target `distclean'. Stop. make[2]: Leaving directory `/fpc_svn/packages/fppkg' make[1]: *** [fppkg_distclean] Error 2 make[1]: Leaving directory

[fpc-devel] Latest FPC SVN , package fpmkunit crosscompiling failure

2011-05-14 Thread ABorka
Latest FPC SVN 17459: Doing a make all OS_TARGET=win64 CPU_TARGET=x86_64 crosscompiling with 32bit FPC gives the following error: = make -C fpmkunit bootstrap make[3]: Entering directory `c:/fpc_svn/packages/fpmkunit' C:/pp/bin/i386-win32/gmkdir.exe -p units_bs/i386-win32

Re: [fpc-devel] fpweb is not showing the exception message

2011-04-13 Thread ABorka
On 4/13/2011 00:07, michael.vancann...@wisa.be wrote: ...snip... On Mon, 11 Apr 2011, ABorka wrote: OK, found the problem: fpweb does not set the content length properly when there was an exception or error message, it uses the content length from the action event handler. For example, if we

Re: [fpc-devel] fpweb is not showing the exception message [Found the problem]

2011-04-13 Thread ABorka
On 4/13/2011 00:07, michael.vancann...@wisa.be wrote: On Mon, 11 Apr 2011, ABorka wrote: ...snip... OK, found the problem: fpweb does not set the content length properly when there was an exception or error message, it uses the content length from the action event handler. For example, if we

[fpc-devel] fpweb is not showing the exception message

2011-04-12 Thread ABorka
I was playing today with fpweb a little, and found a simply reproducible minor problem. When one creates a new CGI or FCGI application and creates a simple default action, but NOT setting the handled := true; within the event handler, then some kind of exception happens within fpweb when the

[fpc-devel] Debugging FCGI applications

2011-04-12 Thread ABorka
Hi, How do we debug an FCGI application from within Lazarus? The RUN function is disabled in the RUN menu, so I can not start it up after putting some break points in the IDE. AB ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] fpweb is not showing the exception message [Found the problem]

2011-04-12 Thread ABorka
On 4/12/2011 01:31, ABorka wrote: On 4/12/2011 00:01, michael.vancann...@wisa.be wrote: On Mon, 11 Apr 2011, ABorka wrote: I was playing today with fpweb a little, and found a simply reproducible minor problem. When one creates a new CGI or FCGI application and creates a simple default

Re: [fpc-devel] fcl-web compilation problems summary

2011-04-12 Thread ABorka
entered as http://bugs.freepascal.org/view.php?id=19153 ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

[fpc-devel] fcl-web compilation problems summary

2011-04-11 Thread ABorka
WinXP 32bit, latest FPC SVN trunk, everything is default, not cross compiling 1. make all creates all the units properly, into the right places. 2. make install gets to the fcl-web package, and the files are copied into ../.. (basically the units/i386-win32/fcl-web directory gets created in

Re: [fpc-devel] fcl-web is not copied by make install

2011-04-09 Thread ABorka
On 4/9/2011 11:26, Joost van der Sluis wrote: On Sat, 2011-04-09 at 00:22 -0700, ABorka wrote: Is it intentional that the fcl-web package is not copied when make install is called? make all compiles the units properly, they are just not copied by make install. Are you sure? Which files do you

Re: [fpc-devel] fcl-web is not copied by make install

2011-04-09 Thread ABorka
On 4/9/2011 12:43, ABorka wrote: On 4/9/2011 11:26, Joost van der Sluis wrote: On Sat, 2011-04-09 at 00:22 -0700, ABorka wrote: Is it intentional that the fcl-web package is not copied when make install is called? make all compiles the units properly, they are just not copied by make install

[fpc-devel] make clean does not delete the fcl-web units

2011-04-09 Thread ABorka
Just like the make install does not copy the FCL-web units to the right place, make clean does not remove them either. Here is the output: . . . C:/pp/bin/i386-win32/make.EXE -C fcl-web distclean make.EXE[2]: Entering directory `C:/fpc_svn/packages/fcl-web' make.EXE[2]: Nothing to be done for

Re: [fpc-devel] make clean does not delete the fcl-web units

2011-04-09 Thread ABorka
On 4/9/2011 14:37, Joost van der Sluis wrote: On Sat, 2011-04-09 at 13:05 -0700, ABorka wrote: Just like the make install does not copy the FCL-web units to the right place, make clean does not remove them either. Here is the output: . . . C:/pp/bin/i386-win32/make.EXE -C fcl-web distclean

[fpc-devel] Delphi 64bit compiler sneak peak available now

2011-04-04 Thread ABorka
https://forums.codegear.com/thread.jspa?threadID=52117tstart=0 We can check it out and do some comparisons now. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] fcl-web webdata ExtJS total field question

2010-08-21 Thread ABorka
...snip... The only thing I've noticed is that with XML the text MySQL fields are not coming over to ExtJS, they only say (MEMO) . Is that because XML does not allow UTF8 or something? No, this is a bug. I fixed it already in JSON (since I use that), but not yet in XML. Some non-text fields

Re: [fpc-devel] fcl-web webdata ExtJS total field question

2010-08-20 Thread ABorka
...snip... I will add an 'AfterFormatResult' or so event; Likewise I will add a AfterRow event, so it is possible to append extra data to a row. I think we should do this for both XML and JSON, so the row/response elements can easily be accessed. The question is now, a) do I make this a

Re: [fpc-devel] fcl-web webdata ExtJS total field question

2010-08-20 Thread ABorka
...snip... Exceptions are usually caught and transformed to the correct response. I coded an event that allows to influence this process. Michael. Yes, the ones raised within FCL-web are caught. I was thinking about the ones raised within the developer's code, when handling the actions, or

Re: [fpc-devel] fcl-web webdata ExtJS total field question

2010-08-20 Thread ABorka
I implemented b), see revision 15859. Tested it, and it seems to work nicely both for JSON and XML. I'm using the AfterDataToJSON and AfterDataToXML events to replace/insert the correct total now. The only thing I've noticed is that with XML the text MySQL fields are not coming over to

Re: [fpc-devel] fcl-web webdata ExtJS total field question

2010-08-19 Thread ABorka
...snip... 2. How can I provide the correct total for the response if I only loaded exactly the records requested by ExtJS into the dataset but not the whole table? Ex: Have a table with 1000 records, I'm on page 2 of the grid that has a page limit of 50 records. Of the total 1000 records, only

Re: [fpc-devel] fcl-web webdata ExtJS total field question

2010-08-19 Thread ABorka
...snip... Well, I have no idea. As far as I know, the 'total' is only needed for display purposes in a paging grid. You'd need to run a second query which counts the number of records that would be returned if no paging was requested. Michael. I understand. However, how do we send back our

Re: [fpc-devel] fcl-web webdata example(s) on Windows has some problems

2010-08-18 Thread ABorka
...snip... ExtJS however, will only have 'remote' type if the server response is proper for it (having a root /which is rows/ in our case), all other cases instead of 'remote' it has the type 'response', regardless of our success property being true or false. Unfortunately, the ExtJS

Re: [fpc-devel] fcl-web webdata example(s) on Windows has some problems

2010-08-18 Thread ABorka
...snip... I don't 100% agree: the exception() handler must also be able to handle 'response'. If there is a server crash or so (which will result in a 500 error code) , it must also be able to handle that. We can add the rows for convenience, but nevertheless the error handler must also

Re: [fpc-devel] fcl-web webdata example(s) on Windows has some problems

2010-08-18 Thread ABorka
..snip... We can add the rows for convenience, but nevertheless the error handler must also handle the 'response' case. Michael. Hi Michael, I've created an updated ExtJS error handler for the demo programs that handle all these response messages from FCL-web without the need to change the

[fpc-devel] fcl-web webdata ExtJS total field question

2010-08-18 Thread ABorka
Hi, 1. Should not the JSON replies have a total returned always like the XML replies? Right now total is not returned if the start/limit is not passed to the formatter. 2. How can I provide the correct total for the response if I only loaded exactly the records requested by ExtJS into the

[fpc-devel] Re: [fpc-pascal] fcl-web webdata example(s) on Windows has some problems

2010-08-17 Thread ABorka
did some more testing: ROUND 4 1. minor note: We should not forget that field names are case sensitive in ExtJS, so any database field names need to be entered exactly: ex: fields: [id,login,name,email, lastlogin] is not the same as fields: [ID,LOGIN,NAME,EMAIL, LASTLOGIN] or

Re: [fpc-devel] fpWeb recursive tag replace

2010-06-07 Thread ABorka
On 6/7/2010 16:40, Leonardo M. Ramé wrote: Hi, when I use html templates with tags that contains inner tags, the ReplaceTag event is fired only once, for the 1st order tag, but not for the inner tags. Example, a home page containing a header (a tag) and a body which contains another tag like,

Re: [fpc-devel] fcl-web actions bug?

2010-05-31 Thread ABorka
Hi, is it possible to call actions this way?: http://host/cgi-bin/myprog/action1 instead of http://host/cgi-bin/myprog?action=action1 I thougth that the designed behavior was to call any action by its name like: http://host/cgi-bin/myprog/action1 http://host/cgi-bin/myprog/action2 But that

[fpc-devel] bug report 12594

2010-03-30 Thread ABorka
It seems it got closed, but I'm not sure it is really fixed (can't add notes now). http://bugs.freepascal.org/view.php?id=12594 In D5 the DFM files are something like this with bitbuttons: . . . object BitBtn1: TBitBtn Left = 96 Top = 52 Width = 75 Height = 25 TabOrder = 1

Re: [fpc-devel] Unable to open file on Linux randomly in a CGI application when using templates

2010-03-15 Thread ABorka
Thanks for the help. It appears that the GetLastOSError is 9 for these errors. In the errno.inc for Linux, that is ESysEBADF = 9;{ Bad file number } I'm not exactly sure what this means though. Right now as a workaround, when this happens, I do a sleep(100) and retry the page

Re: [fpc-devel] Unable to open file on Linux randomly in a CGI application when using templates

2010-03-14 Thread ABorka
294692 For now, I'm retrying again the page generation if an exception happens. So far seems to be working, but will need more time to really see. It was rare to happen. AB On 3/14/2010 16:08, Jonas Maebe wrote: On 14 Mar 2010, at 23:39, ABorka wrote: I have a CGI application

[fpc-devel] In Lazarus fpweb action procedure names no longer include the action name

2010-02-15 Thread ABorka
When creating a web application, for example CGI Application in Lazarus, and adding an action to the web module, the automatically generated procedure name only contains a number and not the given action name. For example, creating an action with a name ABC will generate a OnRequest procedure

Re: [fpc-devel] fpc 14894 svn does not compile

2010-02-13 Thread ABorka
Thanks Jonas, using 2.4.0 for the 1st compile worked. I guess I shouldn't wait months before recompiling the latest SVN :) On 2/13/2010 02:15, Jonas Maebe wrote: On 13 Feb 2010, at 11:10, ABorka wrote: My ppc386.exe is v2.5.1 compiled back in September Building FPC svn trunk has always

[fpc-devel] fpc 14894 svn does not compile

2010-02-12 Thread ABorka
gives the following error for make all (win xp 32bit) C:/pp/bin/i386-win32/ppc386.exe -Ur -Xs -O2 -n -Fui386 -Fusystems -FuC:/.../fpc_svn/rtl/units/i386-win32 -Fii386 -FE. -FUi386/u nits/i386-win32 -dRELEASE -di386 -dGDB -dBROWSERLOG -Fux86 pp.pas optcse.pas(166,24) Warning: Converting

[fpc-devel] Cant compile latest Lazarus

2009-10-02 Thread ABorka
Fresh lazarus svn checkout rev21988 on Linux Compiling lazconfigstorage.pas lresources.pp(2250,17) Error: Identifier not found vaQWord lresources.pp(2250,17) Error: Constant Expression expected lresources.pp(2250,17) Error: duplicate case label lresources.pp(5514) Fatal: There were 3 errors

Re: [fpc-devel] iphone development

2009-09-16 Thread ABorka
You guys are correct about the pricing, of course. But $1K is peanuts if the finished application will be presented to 30-40 million people for download. Considering what I read about obj C development... I think many people/companies would happily pay the price to have some nice language for

Re: [fpc-devel] iphone development

2009-09-16 Thread ABorka
Well, according to Apple the number is 50M : http://www.theiphoneblog.com/2009/09/10/apple-music-event-numbers-30m-iphones-20m-ipod-touches-75k-apps-18b-downloads/ dmitry boyarintsev wrote: But $1K is peanuts if the finished application will be presented to 30-40 million people for download.

[fpc-devel] iphone development

2009-09-15 Thread ABorka
How is freepascal's iphone development compares to this latest mono way of creating native iphone apps? http://arstechnica.com/open-source/news/2009/09/monotouch-drops-net-into-apples-walled-app-garden.ars Reading the wiki it is not really a snap to set it up to be able to develop iphone

Re: [fpc-devel] Is lnet compilation working?

2009-09-09 Thread ABorka
lNet latest SVN revision 2316 gives . . . Target OS: Win32 for i386 Compiling ludp.pp ludp.pp(84,26) Error: Identifier not found LADDR_BR ludp.pp(116) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted . . . with the latest FPC svn rev 13686 Aleš Katona wrote:

[fpc-devel] Is lnet compilation working?

2009-09-04 Thread ABorka
Hi, Trying to send emails and load web pages from Lazarus/FPC programs. Since the latest Indy cannot be compiled and used in Lazarus/Freepascal at the moment (it seems at least so), I have tried to start using lNet. However, it seems it does not compile either. The lNet SVN gives: . . .

Re: [fpc-devel] Is lnet compilation working?

2009-09-04 Thread ABorka
No, just with the latest FPC/Lazarus SVN Vincent Snijders wrote: ABorka schreef: Hi, Trying to send emails and load web pages from Lazarus/FPC programs. Since the latest Indy cannot be compiled and used in Lazarus/Freepascal at the moment (it seems at least so), I have tried to start using

Re: [fpc-devel] Lazarus Apache module crashes during concurrent requests

2009-07-11 Thread ABorka
exported function isn't called, I'm using the same code ABorka used in this example. This is my configuration: Free Pascal Compiler version 2.2.4-3 [2009/06/03] for i386 Copyright (c) 1993-2008 by Florian Klaempfl Linux debian 2.6.26-1-686 #1 SMP Fri Mar 13 18:08:45 UTC 2009 i686 GNU/Linux Leonardo

Re: [fpc-devel] fcgi under windows

2009-06-12 Thread ABorka
If the custom variants need to stay then the descriptions for each must state exactly what is the difference between the custom and not custom and when they should be used. Currently, anyone who is not an FPC/Lazarus professional developer already, cannot decide based on the description. I do

Re: [fpc-devel] fcgi under windows

2009-06-12 Thread ABorka
Done as http://bugs.freepascal.org/view.php?id=13965 Joost van der Sluis wrote: Op woensdag 10-06-2009 om 17:19 uur [tijdzone -0700], schreef ABorka: Adding fcgi-support was only two hours work. Other systems can be added as wel. Next on my list is a native web-server using lnet, so

[fpc-devel] fcgi under windows

2009-06-10 Thread ABorka
Adding fcgi-support was only two hours work. Other systems can be added as wel. Next on my list is a native web-server using lnet, so that debugging is even easier. (I'm absolutely sure that posting all messages about fcl-web not supportinf fcgi was more work then actually adding the

[fpc-devel] Compiler hint for uninitialized local variable minor mistake

2009-05-28 Thread ABorka
fillchar(tmp, sizeof(tmp), #0); gives the Hint: Local variable tmp does not seem to be initialized message upon compilation, which should not happen because it is actually the initialization. ___ fpc-devel maillist -

Re: [fpc-devel] Indy IdHTTP

2009-05-24 Thread ABorka
('Redirected to:' + dest); should work as is. But it does not. UTF8 and ANSI conversion problems cannot happen here because dest is a URL so the UTF8 and ANSI characters are the same. Jonas Maebe wrote: On 24 May 2009, at 04:32, ABorka wrote: In FPC/Lazarus: procedure TForm1.IdHTTP1Redirect(Sender

[fpc-devel] Indy IdHTTP

2009-05-23 Thread ABorka
Hi, I came across some strange thing while making a simple program using Indy 10. If I use an IdHTTP object to load a web page that redirects to another one, the new destination URL is not passed properly through the event handler. Whether this is an indy or fpc problem, I'm not sure.

[fpc-devel] To Joost on 13228 and 13280

2009-03-13 Thread ABorka
Hi Joost, Can't add notes to resolved reports so I write here instead. :) I assumed the FCL-web patches/changes I submitted will be applied in chronological order so there might be a little snag there at the moment. It seems that now 13228 and 13280 are both applied (with your

Re: [fpc-devel] Debugger for FPC

2009-03-11 Thread ABorka
I agree. The current ways to debug FPC/Lazarus programs are not up to the standards even compared to 10-15 years ago Delphi debugging. Most developers does not want to start digging the underlying RTL/Component, etc. source codes to figure out what they should enter into the watch window

Re: [fpc-devel] Patch for FCL-web; bug fixes and improvements for CGI and Apache applications

2009-03-06 Thread ABorka
if anyone is interested what is in there (don't panic, only about 50 something lines). AB Joost van der Sluis wrote: Op zaterdag 28-02-2009 om 22:06 uur [tijdzone -0800], schreef ABorka: I posted the following patch as http://bugs.freepascal.org/view.php?id=13254 (includes the changes posted

Re: [fpc-devel] Patch for FCL-web; bug fixes and improvements for CGI and Apache applications

2009-03-01 Thread ABorka
Joost van der Sluis wrote: Op zaterdag 28-02-2009 om 22:06 uur [tijdzone -0800], schreef ABorka: I posted the following patch as http://bugs.freepascal.org/view.php?id=13254 (includes the changes posted in 13250 and 13228 too) It takes soo long before the patches are applied because they are too

Re: [fpc-devel] fpc.cfg and apache-modules

2009-02-28 Thread ABorka
So when someone compiles the FPC from SVN, which httpd and apr sources will be used for /packages/fcl-web/src/fpapache.pp ? There are httpd13 httpd20 and httpd22 directories with some identical unit names (httpd, apr) that are used in fpapache.pp . Joost van der Sluis wrote: Op donderdag

[fpc-devel] Patch for FCL-web; bug fixes and improvements for CGI and Apache applications

2009-02-28 Thread ABorka
Hi, I posted the following patch as http://bugs.freepascal.org/view.php?id=13254 (includes the changes posted in 13250 and 13228 too) 1. Added: CGI and Apache applications' temporary uploaded files will be deleted after a request is handled /html forms with file upload(s)/ so the files are

[fpc-devel] Lazarus mixes the mouse-over source files

2009-02-21 Thread ABorka
Hi, I stumped into a little confusing part regarding how it is determined what source and unit files are used by Lazarus and the FPC compiler. By moving my mouse over a function/procedure call, Lazarus displays the source code file where that item is declared. However, it seems that if there

Re: [fpc-devel] Rebuild Lazarus fails for some reason

2009-02-19 Thread ABorka
Lazarus from the Tools menu after a clean install. Michael Van Canneyt wrote: On Wed, 18 Feb 2009, ABorka wrote: Hi, I'm getting componenttreeview.pas(41,18) Fatal: Can't find unit ComponentTreeView used by ObjectInspector On this computer (win32, XP) rebuilding Lazarus does not work

[fpc-devel] Rebuild Lazarus fails for some reason

2009-02-18 Thread ABorka
Hi, I'm getting componenttreeview.pas(41,18) Fatal: Can't find unit ComponentTreeView used by ObjectInspector On this computer (win32, XP) rebuilding Lazarus does not work. Steps: 1. Clear all lazarus/fpc directories (except the c:\pp\bin\i386-win32\ so there's a working FPC compiler left

Re: [fpc-devel] Re: Unicode support (again)

2008-11-13 Thread ABorka
Nice thread - as always when unicode handling is brought up :) There should really be a decision and feature list as soon as possible so the implementation can go on. There is really no need to spend a year on these decisions. Proper unicode handling strategy/implementation with backward and

Re: [fpc-devel] asm offset question

2008-11-10 Thread ABorka
True, but if the programs only run on PCs (Windows and Linux on Intel processors in this case) it should work. Not everyone who considers using FPC/Lazarus wants to run the compiled programs on 15 platforms. Sometimes all that is needed is 1 platform. There are some encrypting/decrypting

[fpc-devel] asm offset question

2008-11-08 Thread ABorka
Hi, I'm converting a Delphi program to FPC/lazarus and I did hit a snag with an asm code part (win32, latest fpc and lazarus svn trunk is used). I know it is probably simple to fix, but I cannot seem to be able to figure it out: function something(s :String; i: Integer):String; var

Re: [fpc-devel] asm offset question

2008-11-08 Thread ABorka
Thanks. It seems that mov al, dl as well as xor al, dl gives error too. I created a bug report http://bugs.freepascal.org/view.php?id=12595 Daniël Mantione wrote: Op Sat, 8 Nov 2008, schreef ABorka: Hi, I'm converting a Delphi program to FPC/lazarus and I did hit a snag with an asm

[fpc-devel] Apache module fixes (fcl-web, httpd22 and Lazarus apache modules)

2008-10-12 Thread ABorka
It seems everything works now with the latest apache servers both on Windows and Linux. Submitted 3 patches: fcl-web patch : http://bugs.freepascal.org/view.php?id=12373 fcl/packages/fcl-web/ httpd22 patch : http://bugs.freepascal.org/view.php?id=12374 fcl/packages/httpd22/ lazarus patch :

Re: [fpc-devel] Lazarus Apache module crashes during concurrent requests

2008-10-05 Thread ABorka
and waiting. Any thoughts? AB Jonas Maebe wrote: On 24 Sep 2008, at 10:58, ABorka wrote: I'm not sure that something is changed to make it incompatible. The apache modules compiled on windows are only crashing if multiple requests are coming at the same time, and they are crushing at function

Re: [fpc-devel] Strange things with the apache header files on Linux

2008-10-02 Thread ABorka
programs included in the fcl package directory httpd22/examples) The record length for module_struct and request_rec are the same for the fpc compiled apache module and a C compiled module, still the fpc compiled one does not work. Marco van de Voort wrote: In our previous episode, ABorka said

Re: [fpc-devel] library export in Linux

2008-10-02 Thread ABorka
). The length of module_struct (module = module_struct) is correct compared to the C compiled working apache modules. Did these example programs work before fpc supported exports test_module? Jonas Maebe wrote: On 28 Sep 2008, at 10:15, ABorka wrote: Is the exports now supported in Linux or it's

Re: [fpc-devel] library export in Linux

2008-10-02 Thread ABorka
by apache. Felipe Monteiro de Carvalho wrote: On Thu, Oct 2, 2008 at 10:53 PM, ABorka [EMAIL PROTECTED] wrote: It works under Windows with apache 2.2.9 which is even newer version, but not on Linux with apache 2.2.8 . Is it still needed to be checked on older Apache versions? Yes, it's a linux

Re: [fpc-devel] library export in Linux

2008-10-02 Thread ABorka
:) The C example still works with ap_hook_handler, maybe they made it a macro or something? I believe the translation was for apache 2.2.3 header files, based on the ap_mmn.inc included in fpc/packages/httpd22 In the comments there we can see * 20051115.2 (2.2.2) added inreslist member

[fpc-devel] Strange things with the apache header files on Linux

2008-10-01 Thread ABorka
On Linux (Ubuntu 8.04), latest SVN, in fpc/packages/httpd22/... in httpd.inc inside request_rec: { body byte count, for easy access } bytes_sent: apr_off_t; { Last modified time of the requested resource } mtime: apr_time_t; in apr.pas : apr_off_t = Int64; apr_int64_t =

Re: [fpc-devel] Strange things with the apache header files on Linux

2008-10-01 Thread ABorka
an empty web page is returned. Everything works under Windows, but not on Linux. ABorka wrote: On Linux (Ubuntu 8.04), latest SVN, in fpc/packages/httpd22/... in httpd.inc inside request_rec: { body byte count, for easy access } bytes_sent: apr_off_t; { Last modified time

Re: [fpc-devel] Lazarus Apache module crashes during concurrent requests

2008-09-30 Thread ABorka
OK, after 4 days of pulling my (remaining) hair out I was able to compile a basic C apache module on Ubuntu 8.04 (apache 2.2.8). It seems both fpc/lazarus (not working apache module) and the C compiled (working apache module) one shows sizeof(request_rec) = 412 sizeof(module_struct) = 56

Re: [fpc-devel] Lazarus Apache module crashes during concurrent requests

2008-09-30 Thread ABorka
Nevermind, on Ubuntu the request_rec is only 384 bytes for FPC instead of 412. But that still does not explain why the handler function is not even getting called by apache. ABorka wrote: OK, after 4 days of pulling my (remaining) hair out I was able to compile a basic C apache module

[fpc-devel] library export in Linux

2008-09-28 Thread ABorka
In the apache module examples in /fpc/packages/httpd22/examples/ all of them has a Free Pascal only supports exporting variables on Windows note there and something like {$ifdef WINDOWS} exports test_module name 'test_module'; {$endif} With Apache 2.2.8 and 2.2.9 (the two I can test) on

Re: [fpc-devel] Lazarus Apache module crashes during concurrent requests

2008-09-24 Thread ABorka
I'm not sure that something is changed to make it incompatible. The apache modules compiled on windows are only crashing if multiple requests are coming at the same time, and they are crushing at function/procedure returns (Yes, on Linux it is even worse, since no module gets even loaded by

Re: [fpc-devel] Lazarus Apache module crashes during concurrent requests

2008-09-24 Thread ABorka
Well, it seems we have some progress now. The WaitForThreadTerminate(BeginThread(@__dummythread), 300); seems to fix it on Windows. At least for 2 concurrent requests. For some reason Apache cannot seem to want to run more than 2 requests at a time. If more comes in at a time, the first 2

Re: [fpc-devel] Lazarus Apache module crashes during concurrent requests

2008-09-24 Thread ABorka
For me in Windows XP 32bit/ FPC (apache modules load properly): sizeof(request_rec)=416 sizeof(module_struct)=56 For me in Ubuntu 8.04 32bit/ FPC (apache modules don't load): sizeof(request_rec)=412 sizeof(module_struct)=56 Used exactly the same files to compile a project on Ubuntu but for

Re: [fpc-devel] Lazarus Apache module crashes during concurrent requests

2008-09-23 Thread ABorka
. The crash did not go away. At least on Windows, Apache loads the module and executes it sometimes. On Linux the apache modules compiled don't even load. AB Michael Van Canneyt wrote: On Mon, 22 Sep 2008, ABorka wrote: After some more debugging the result is even stranger: If I reduce

Re: [fpc-devel] Lazarus Apache module crashes during concurrent requests

2008-09-22 Thread ABorka
contains any try/except it is guaranteed not returning (crashing) after the work is finished for the 2nd caller (2nd simultaneaous request). The first simultaneous caller always works without a problem. Any suggestions? ABorka wrote: win32, latest Lazarus and FPC Any single web request call

[fpc-devel] C header conversion question

2008-09-21 Thread ABorka
Original C header from the Apache 2.2.9 httpd.h : /** Are we still talking? */ unsigned aborted:1; /** Are we going to keep the connection alive for another request? * @see ap_conn_keepalive_e */ ap_conn_keepalive_e keepalive; /** have

[fpc-devel] Lazarus Apache module crashes during concurrent requests

2008-09-21 Thread ABorka
win32, latest Lazarus and FPC Any single web request call works OK, returning the content. When 2 browsers are open and calling the web module at the same time there is a crash happening after the 2nd one finishes working (just made a loop in the web action which lasts a few seconds to have

[fpc-devel] fcl-web improvement for apache modules, question

2008-09-19 Thread ABorka
Hi, I'm working on the Apache application (TCustomApacheApplication) simultaneous request handling. When the Apache module tries to create additional instances of the web module I get `Error: Duplicate name: A component named FPWebModule1 already exists` How can we create multiple

Re: [fpc-devel] fcl-web improvement for apache modules, question

2008-09-19 Thread ABorka
Hi Michael, It was created in fpapache.pp in the handlerequest event. M:=MC.create(self); It worked without using the createnew, with the latest FPC source code. AB On Thu, 18 Sep 2008, ABorka wrote: Hi, I'm working on the Apache application (TCustomApacheApplication) simultaneous

Re: [fpc-devel] fcl-web improvement for apache modules, question

2008-09-19 Thread ABorka
the name, will the next call find the changed named module for reuse? On Fri, 19 Sep 2008, ABorka wrote: Hi Michael, It was created in fpapache.pp in the handlerequest event. M:=MC.create(self); It worked without using the createnew, with the latest FPC source code. This is weird, because

Re: [fpc-devel] fcl-web improvement for apache modules, question

2008-09-19 Thread ABorka
2008, ABorka wrote: The thing is that for apache modules it is needed to have multiple webmodules created for simultaneous requests coming from multiple people browsing the web server. I was creating some pooling for the web modules in fpapache.pp and simulated 2 concurrent requests when

Re: [fpc-devel] Unicodestring branch, please test and help fixing #2

2008-09-16 Thread ABorka
After reading the mailing lists more I've played a little bit with this and it seems that with Zeos (MySQL5) it is working out of the box at first sight (need some more tests) if one sets the ZConnection.Properties to character_set_client=utf8 character_set_connection=utf8

Re: [fpc-devel] Bug report 12110 needs a cleanup in the bug tracker system?

2008-09-14 Thread ABorka
Canneyt wrote: On Sat, 13 Sep 2008, ABorka wrote: Hi Michael, I see 12110 is applied now, super :) I am trying to improve on the fcl-web and the next step would be to fix the apache module related things. However, there is a problem I could use some help with. It seems that when the apache

Re: [fpc-devel] Bug report 12110 needs a cleanup in the bug tracker system?

2008-09-13 Thread ABorka
. Failed to initialize component: No streaming method available. exception is always triggered. Thanks for any help AB Michael Van Canneyt wrote: On Thu, 11 Sep 2008, ABorka wrote: Somebody (user name kc87654321) pooped into 12110 thinking that he/she is posting a new report. But in fact uploaded

Re: [fpc-devel] Unicodestring branch, please test and help fixing

2008-09-12 Thread ABorka
It is not documented at all. Just like the rest of the database-stuff. But maybe I should write a FAQ for fpc. With the new lazarus-versions using UTF-8 by default, this is asked quite often. This would be really nice. I know I'm not the only one who doesn't want to spend days on hacking

Re: [fpc-devel] Unicodestring branch, please test and help fixing

2008-09-11 Thread ABorka
Some conversion problem occurs and empty string put into a TListbox if I try to get a field value with some special characters from a SQL result. (using Zeos) The database field can contain any string with '®' in it for this to happen for example: 'sometext®' It seems that

Re: [fpc-devel] Unicodestring branch, please test and help fixing

2008-09-11 Thread ABorka
. Is there a function to convert 'My Perfect™ World®' to whatever format the components require and vice versa? Something for the ASCII table up till #255 (English letters with some special characters like the above example). JoshyFun wrote: Hello ABorka, Thursday, September 11, 2008, 7:26:50 PM