Re: [Lazarus] Form position and size not preserved

2010-12-01 Thread Vincent Snijders
2010/12/1 Darius Blaszyk dhkblas...@zeelandnet.nl: Ahhh, found it. By setting the window option from Default to Restore window geometry everything works fine now. I'm surprised though it used to work by restoring the geometry. What does default mean? I think default means the designed position

Re: [Lazarus] How to use environment variables in lazarus IDE config?

2010-12-01 Thread Bo Berglund
On Tue, 30 Nov 2010 18:35:48 +0100, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Tue, 30 Nov 2010 17:48:47 +0100 Bo Berglund bo.bergl...@gmail.com wrote: I would like to specify things like the base location of files using environment variables rather than entering full paths. In

Re: [Lazarus] changing some FPC units

2010-12-01 Thread Alberto Manganaro
Well, but I don't want to install a new version fo the package, I just want to modify something in the original code, recompile it and use the unit in Lazarus. I tried again but I can't figure it out, so my question is: where does Lazarus take the compiled FPC libraries to be linked with my

Re: [Lazarus] How to use environment variables in lazarus IDE config?

2010-12-01 Thread Sven Barth
Am 01.12.2010 09:23, schrieb Bo Berglund: On Tue, 30 Nov 2010 18:35:48 +0100, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Tue, 30 Nov 2010 17:48:47 +0100 Bo Berglundbo.bergl...@gmail.com wrote: I would like to specify things like the base location of files using environment

Re: [Lazarus] changing some FPC units

2010-12-01 Thread Mattias Gaertner
On Wed, 01 Dec 2010 09:25:06 +0100 Alberto Manganaro alberto.mangan...@unimib.it wrote: Well, but I don't want to install a new version fo the package, I just want to modify something in the original code, recompile it and use the unit in Lazarus. I tried again but I can't figure it out,

Re: [Lazarus] How to use environment variables in lazarus IDE config?

2010-12-01 Thread Mattias Gaertner
On Wed, 01 Dec 2010 09:23:23 +0100 Bo Berglund bo.bergl...@gmail.com wrote: On Tue, 30 Nov 2010 18:35:48 +0100, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Tue, 30 Nov 2010 17:48:47 +0100 Bo Berglund bo.bergl...@gmail.com wrote: I would like to specify things like the base

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Michael Schnell
On 12/01/2010 12:58 AM, waldo kitty wrote: No chance, I'd rather stop programming then using .net +1000~ Why exactly would you prefer Java over CIL Pascal ? (This of course should rather be handled in the other list...) -Michael --

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread waldo kitty
On 12/1/2010 04:43, Michael Schnell wrote: On 12/01/2010 12:58 AM, waldo kitty wrote: No chance, I'd rather stop programming then using .net +1000~ Why exactly would you prefer Java over CIL Pascal ? i'm not saying that... i'm saying that if i had to code in .net, that i

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Michael Schnell
On 11/30/2010 02:52 PM, michael.vancann...@wisa.be wrote: FastCgiExternalServer D:/counte/verbruik/server -host 127.0.0.1:2015 -idle-timeout 30 -flush AFAIK, fastCGI can use as well a TCP/IP socket as a pipe to do the communication between the WebServer and the CGI program (not really a

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Michael Schnell
On 12/01/2010 11:25 AM, waldo kitty wrote: i'm not saying that... i'm saying that if i had to code in .net, that i would quite coding... is that not what the first quote says? There are things that can't be done by most traditional programming frameworks but can be done by using either Java

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Vincent Snijders
2010/12/1 Michael Schnell mschn...@lumino.de: a Browser, ...). As we are in a Pascal oriented list, here, only CIL-Pascal is relevant. Actually this is a Lazarus list, so until FPC support CIL-pascal, CIL-pascal is irrelevant here. Vincent -- ___

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Michael Van Canneyt
On Wed, 1 Dec 2010, Michael Schnell wrote: On 11/30/2010 02:52 PM, michael.vancann...@wisa.be wrote: FastCgiExternalServer D:/counte/verbruik/server -host 127.0.0.1:2015 -idle-timeout 30 -flush AFAIK, fastCGI can use as well a TCP/IP socket as a pipe to do the communication between the

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Joost van der Sluis
On Tue, 2010-11-30 at 14:52 +0100, michael.vancann...@wisa.be wrote: On Tue, 30 Nov 2010, Marcos Douglas wrote: On Tue, Nov 30, 2010 at 10:23 AM, michael.vancann...@wisa.be wrote: On Tue, 30 Nov 2010, Marcos Douglas wrote: On Wed, Nov 24, 2010 at 4:43 PM, Michael Van Canneyt

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-12-01 Thread Joost van der Sluis
On Wed, 2010-12-01 at 14:17 +0100, zeljko wrote: On Wednesday 01 December 2010 13:48, Joost van der Sluis wrote: On Tue, 2010-11-30 at 13:14 +0100, zeljko wrote: I think we should not change a thing, until the problem is clear. Maybe we can come up with some 'general'

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-12-01 Thread zeljko
On Wednesday 01 December 2010 14:23, Joost van der Sluis wrote: On Wed, 2010-12-01 at 14:17 +0100, zeljko wrote: On Wednesday 01 December 2010 13:48, Joost van der Sluis wrote: On Tue, 2010-11-30 at 13:14 +0100, zeljko wrote: I think we should not change a thing, until the problem is

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Michael Schnell
On 12/01/2010 02:16 PM, Joost van der Sluis wrote: My FastCGI process is running as a windows service. What is exactly the reason for this? Isn't it much easier when the webserver starts (and stops, when it is not used) the cgi-application, than doing this in a Windows service? As creating

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-12-01 Thread Mark Morgan Lloyd
Joost van der Sluis wrote: Is there somewhere I can hook into the TSQLQuery to (a) see exactly what query was passed to the server (b) collect any error text and (c) get execution timing? a) Easiest is to use the database-client's log mechanism. (If there is any). Else you can change the

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Joost van der Sluis
On Wed, 2010-12-01 at 14:43 +0100, Michael Schnell wrote: On 12/01/2010 02:16 PM, Joost van der Sluis wrote: My FastCGI process is running as a windows service. What is exactly the reason for this? Isn't it much easier when the webserver starts (and stops, when it is not used) the

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread michael . vancanneyt
On Wed, 1 Dec 2010, Joost van der Sluis wrote: The can do the same thing: By default, a fastcgi process is started by the webserver, passing it the socket on which it should listen. Most imporant difference is that mod_fastcgi is deprecated and doesn't follow the FastCGI standard. In

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread michael . vancanneyt
On Wed, 1 Dec 2010, Michael Schnell wrote: On 12/01/2010 02:16 PM, Joost van der Sluis wrote: My FastCGI process is running as a windows service. What is exactly the reason for this? Isn't it much easier when the webserver starts (and stops, when it is not used) the cgi-application, than

Re: [Lazarus] How to use environment variables in lazarus IDE config?

2010-12-01 Thread Bo Berglund
On Wed, 1 Dec 2010 10:12:00 +0100, Mattias Gaertner nc-gaert...@netcologne.de wrote: I entered the following as the FPC compiler path: $Env(FPCBASE)\2.4.2\bin\i386-Win32\fpc.exe Should work now. Now meaning what? Do I need to grab a newer version of lazarus and rebuild it? Yes.

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-12-01 Thread michael . vancanneyt
On Wed, 1 Dec 2010, Joost van der Sluis wrote: Is there somewhere I can hook into the TSQLQuery to (a) see exactly what query was passed to the server (b) collect any error text and (c) get execution timing? a) Easiest is to use the database-client's log mechanism. (If there is any). Else

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Joost van der Sluis
On Wed, 2010-12-01 at 15:51 +0100, michael.vancann...@wisa.be wrote: On Wed, 1 Dec 2010, Joost van der Sluis wrote: The can do the same thing: By default, a fastcgi process is started by the webserver, passing it the socket on which it should listen. Most imporant difference is

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Michael Schnell
On 12/01/2010 03:52 PM, michael.vancann...@wisa.be wrote: But FastCGI is better, since it runs irrespective of the webserver. And given that IIS is losing market share, I would never code exclusively for IIS. +1, but we did hear bad rumors about FCGI, so we used ISAPI :(. -Michael --

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-12-01 Thread Joost van der Sluis
On Wed, 2010-12-01 at 16:01 +0100, michael.vancann...@wisa.be wrote: On Wed, 1 Dec 2010, Joost van der Sluis wrote: Is there somewhere I can hook into the TSQLQuery to (a) see exactly what query was passed to the server (b) collect any error text and (c) get execution timing? a)

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-12-01 Thread Mark Morgan Lloyd
michael.vancann...@wisa.be wrote: On Wed, 1 Dec 2010, Joost van der Sluis wrote: Is there somewhere I can hook into the TSQLQuery to (a) see exactly what query was passed to the server (b) collect any error text and (c) get execution timing? a) Easiest is to use the database-client's log

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-12-01 Thread Mark Morgan Lloyd
zeljko wrote: Well, these are tne ansi/sql transacion isolation levels. do you know a database which actually uses/supports these? (Except from Oracle) Yes, PostgreSQL supports all of them. With the same names? I know from some other db-servers, that they use Yes.

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread michael . vancanneyt
On Wed, 1 Dec 2010, Joost van der Sluis wrote: On Wed, 2010-12-01 at 15:51 +0100, michael.vancann...@wisa.be wrote: On Wed, 1 Dec 2010, Joost van der Sluis wrote: The can do the same thing: By default, a fastcgi process is started by the webserver, passing it the socket on which it

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-12-01 Thread Mark Morgan Lloyd
Joost van der Sluis wrote: I am a firm proponent of putting a unified mechanism for a) and c) in TSQLQuery/TSQLConnection, and have, in fact, a patch ready for this (it implements a simple event mechanism for the log). That's a no-brainer. It could als use TCustomApplication.Log, if

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Marcos Douglas
On Wed, Dec 1, 2010 at 1:05 PM, michael.vancann...@wisa.be wrote: [snip] It never could. There is 1 connection, and all requests go through this connection. A week (or maybe 2) ago, I sent you a private mail about using select() on the connection handle.  This or the use of threads could

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-12-01 Thread michael . vancanneyt
On Wed, 1 Dec 2010, Joost van der Sluis wrote: On Wed, 2010-12-01 at 16:01 +0100, michael.vancann...@wisa.be wrote: On Wed, 1 Dec 2010, Joost van der Sluis wrote: Is there somewhere I can hook into the TSQLQuery to (a) see exactly what query was passed to the server (b) collect any

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Luiz Americo Pereira Camara
Joost van der Sluis escreveu: The FastCGI process should return how many connection and requests it can handle. I'm not sure anymore if FastCGI of fpc can handle muliple requests at a time. (It could, but some parts ahve been changed) AFAIK at least Apache does not support multiplexing, so no

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread michael . vancanneyt
On Wed, 1 Dec 2010, Marcos Douglas wrote: On Wed, Dec 1, 2010 at 1:05 PM, michael.vancann...@wisa.be wrote: [snip] It never could. There is 1 connection, and all requests go through this connection. A week (or maybe 2) ago, I sent you a private mail about using select() on the connection

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Marcos Douglas
2010/12/1 michael.vancann...@wisa.be: On Wed, 1 Dec 2010, Marcos Douglas wrote: On Wed, Dec 1, 2010 at 1:05 PM, michael.vancann...@wisa.be wrote: [snip] It never could. There is 1 connection, and all requests go through this connection. A week (or maybe 2) ago, I sent you a private

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Joost van der Sluis
On Wed, 2010-12-01 at 17:05 +0100, michael.vancann...@wisa.be wrote: On Wed, 1 Dec 2010, Joost van der Sluis wrote: On Wed, 2010-12-01 at 15:51 +0100, michael.vancann...@wisa.be wrote: On Wed, 1 Dec 2010, Joost van der Sluis wrote: Also check this:

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Marcos Douglas
On Wed, Dec 1, 2010 at 2:07 PM, Joost van der Sluis jo...@cnoc.nl wrote: On Wed, 2010-12-01 at 17:05 +0100, michael.vancann...@wisa.be wrote: On Wed, 1 Dec 2010, Joost van der Sluis wrote: On Wed, 2010-12-01 at 15:51 +0100, michael.vancann...@wisa.be wrote: On Wed, 1 Dec 2010, Joost van

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-12-01 Thread Mark Morgan Lloyd
zel...@holobit.net wrote: Quoting Mark Morgan Lloyd markmll.laza...@telemetry.co.uk: Would it be possible to write a server-side PostgreSQL extension using Lazarus, including friendly debugging? Yes, feel free to do that :) [GRIN] Actually, it was a serious question: can Lazarus debug a

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Michael Van Canneyt
On Wed, 1 Dec 2010, Joost van der Sluis wrote: On Wed, 2010-12-01 at 17:05 +0100, michael.vancann...@wisa.be wrote: On Wed, 1 Dec 2010, Joost van der Sluis wrote: On Wed, 2010-12-01 at 15:51 +0100, michael.vancann...@wisa.be wrote: On Wed, 1 Dec 2010, Joost van der Sluis wrote: Also

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Michael Van Canneyt
On Wed, 1 Dec 2010, Marcos Douglas wrote: 2010/12/1 michael.vancann...@wisa.be: On Wed, 1 Dec 2010, Marcos Douglas wrote: On Wed, Dec 1, 2010 at 1:05 PM, michael.vancann...@wisa.be wrote: [snip] It never could. There is 1 connection, and all requests go through this connection. A

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Dariusz Mazur
ExtPascal uses threads to handle multiple connections. I remember you don't accept this way, right? BTW, what is there wrong if ExtPascal uses threads? I accept using threads, but not the way ExtPascal does it. Threads should be optional. In extpascal, the thread is equal to the session: if